mirror of
https://github.com/DesignPatternsPHP/DesignPatternsPHP.git
synced 2025-08-04 05:57:25 +02:00
cs SimpleFactory and Builder
This commit is contained in:
@@ -35,7 +35,7 @@ class SimpleFactoryTest extends \PHPUnit_Framework_TestCase
|
||||
public function testCreation($type)
|
||||
{
|
||||
$obj = $this->factory->createVehicle($type);
|
||||
$this->assertInstanceOf('DesignPatterns\SimpleFactory\Vehicle', $obj);
|
||||
$this->assertInstanceOf('DesignPatterns\SimpleFactory\VehicleInterface', $obj);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user