@@ -19,7 +19,7 @@ |
||
| 19 | 19 | |
| 20 | 20 | private function verificarSiExisteLaClase($nombreDeLaClase): string |
| 21 | 21 | { |
| 22 | - if(!class_exists($nombreDeLaClase)) |
|
| 22 | + if (!class_exists($nombreDeLaClase)) |
|
| 23 | 23 | { |
| 24 | 24 | throw new Exception("La clase no existe", 1); |
| 25 | 25 | } |
@@ -23,11 +23,11 @@ |
||
| 23 | 23 | |
| 24 | 24 | public function testSiLaClaseExisteYDevuelveUnObjeto() |
| 25 | 25 | { |
| 26 | - $this->assertIsObject($this->class->crear('test\Dummy', array() ) ); |
|
| 26 | + $this->assertIsObject($this->class->crear('test\Dummy', array())); |
|
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | public function testSiRegresaUnaClaseEsConsideradaUnObjeto() |
| 30 | 30 | { |
| 31 | - $this->assertIsObject( $this->crearDummy->crear(array() ) ); |
|
| 31 | + $this->assertIsObject($this->crearDummy->crear(array())); |
|
| 32 | 32 | } |
| 33 | 33 | } |
| 34 | 34 | \ No newline at end of file |
@@ -5,7 +5,7 @@ |
||
| 5 | 5 | |
| 6 | 6 | declare(strict_types=1); |
| 7 | 7 | |
| 8 | -require_once __DIR__ . '/vendor/autoload.php'; |
|
| 8 | +require_once __DIR__.'/vendor/autoload.php'; |
|
| 9 | 9 | |
| 10 | 10 | /* |
| 11 | 11 | Creamos la clase Dummy a partir de una clase que devuelve Dummy, esto permite pasar Factory dentro de un contenedor sin necesidad de pasar los parametros del constructor en el momento |