merge from master

This commit is contained in:
Antonio Spinelli
2014-05-02 12:33:44 -03:00
parent 9beb7d9a58
commit 14a9dfe7cf
16 changed files with 325 additions and 17 deletions

View File

@@ -0,0 +1,21 @@
<?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();
}
}