| Total Complexity | 4 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | class PrototypeTest extends PHPUnit_Framework_TestCase |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * @var AbstractPrototype |
||
| 21 | */ |
||
| 22 | private $prototype; |
||
| 23 | |||
| 24 | protected function setUp(): void |
||
| 25 | { |
||
| 26 | $this->prototype = new Prototype(); |
||
| 27 | } |
||
| 28 | |||
| 29 | public function testInstances() |
||
| 30 | { |
||
| 31 | $clonedFirstPrototype = $this->getPrototype()->getPrototype(); |
||
| 32 | $this->assertFalse($clonedFirstPrototype === $this->getPrototype()); |
||
| 33 | $this->assertInstanceOf(Prototype::class, $clonedFirstPrototype); |
||
| 34 | } |
||
| 35 | |||
| 36 | public function testCountInstances() |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @return AbstractPrototype |
||
| 47 | */ |
||
| 48 | public function getPrototype(): AbstractPrototype |
||
| 53 |