mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-07-25 17:21:19 +02:00
22 lines
522 B
PHP
22 lines
522 B
PHP
<?php
|
|
|
|
namespace DesignPatterns\Structural\Bridge;
|
|
|
|
class BridgeTest extends \PHPUnit_Framework_TestCase
|
|
{
|
|
|
|
public function testCar()
|
|
{
|
|
$vehicle = new Car(new Produce(), new Assemble());
|
|
$this->expectOutputString('Car Produced Assembled');
|
|
$vehicle->manufacture();
|
|
}
|
|
|
|
public function testMotorcycle()
|
|
{
|
|
$vehicle = new Motorcycle(new Produce(), new Assemble());
|
|
$this->expectOutputString('Motorcycle Produced Assembled');
|
|
$vehicle->manufacture();
|
|
}
|
|
}
|