Total Complexity | 3 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Changes | 4 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | class FactoryMethodTest extends PHPUnit_Framework_TestCase |
||
18 | { |
||
19 | /** |
||
20 | * @var FactoryMethodInterface |
||
21 | */ |
||
22 | private $factory; |
||
23 | |||
24 | protected function setUp(): void |
||
25 | { |
||
26 | $this->factory = new FactoryMethod(); |
||
27 | } |
||
28 | |||
29 | public function testProducts() |
||
30 | { |
||
31 | $this->assertEquals($this->factory->create(FirstAbstractProduct::class)->getClassName(), FirstAbstractProduct::class); |
||
32 | $this->assertEquals($this->factory->create(SecondAbstractProduct::class)->getClassName(), SecondAbstractProduct::class); |
||
33 | } |
||
34 | |||
35 | public function testInstances() |
||
40 | } |
||
41 | } |
||
42 |