| Total Complexity | 4 |
| Total Lines | 22 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class FactoryTest extends TestCase |
||
| 11 | { |
||
| 12 | public function setUp(): void |
||
| 16 | } |
||
| 17 | |||
| 18 | public function testSiLaClaseNoExisteSeEsperaUnaExcepcion() |
||
| 19 | { |
||
| 20 | $this->expectException(Exception::class); |
||
| 21 | $this->class->crear('Hola', array('hola')); |
||
| 22 | } |
||
| 23 | |||
| 24 | public function testSiLaClaseExisteYDevuelveUnObjeto() |
||
| 25 | { |
||
| 26 | $this->assertIsObject($this->class->crear('test\Dummy', array() ) ); |
||
| 27 | } |
||
| 28 | |||
| 29 | public function testSiRegresaUnaClaseEsConsideradaUnObjeto() |
||
| 32 | } |
||
| 33 | } |