@@ -8,10 +8,10 @@ discard block |
||
8 | 8 | use src\Parametros; |
9 | 9 | use src\Peticion; |
10 | 10 | |
11 | -define('CONTROLADOR_POR_DEFECTO','Controlador'); |
|
12 | -define('CONTROLADOR_DIR','controladores/'); |
|
11 | +define('CONTROLADOR_POR_DEFECTO', 'Controlador'); |
|
12 | +define('CONTROLADOR_DIR', 'controladores/'); |
|
13 | 13 | define('CONTROLADOR_NAMESPACE', 'controladores\\'); |
14 | -define('METODO_POR_DEFECTO','index'); |
|
14 | +define('METODO_POR_DEFECTO', 'index'); |
|
15 | 15 | |
16 | 16 | class PeticionTest extends TestCase |
17 | 17 | { |
@@ -19,8 +19,8 @@ discard block |
||
19 | 19 | { |
20 | 20 | $this->e = new Enlace(['Controlador']); |
21 | 21 | $this->c = new Controlador($this->e); |
22 | - $this->m = new Metodo($this->e,$this->c); |
|
23 | - $this->p = new Parametros($this->e,$this->m); |
|
22 | + $this->m = new Metodo($this->e, $this->c); |
|
23 | + $this->p = new Parametros($this->e, $this->m); |
|
24 | 24 | } |
25 | 25 | |
26 | 26 | //Peticion |
@@ -35,8 +35,8 @@ discard block |
||
35 | 35 | { |
36 | 36 | $this->e = new Enlace(['Iniciosssssssss']); |
37 | 37 | $this->c = new Controlador($this->e); |
38 | - $this->m = new Metodo($this->e,$this->c); |
|
39 | - $this->p = new Parametros($this->e,$this->m); |
|
38 | + $this->m = new Metodo($this->e, $this->c); |
|
39 | + $this->p = new Parametros($this->e, $this->m); |
|
40 | 40 | $p = new Peticion($this->c, $this->m, $this->p); |
41 | 41 | $this->assertSame('Controlador', $p->controlador()); |
42 | 42 | } |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | { |
60 | 60 | $e = new Enlace([]); |
61 | 61 | $this->assertIsArray($e->enlace()); |
62 | - $e = new Enlace(['hola','hola2']); |
|
62 | + $e = new Enlace(['hola', 'hola2']); |
|
63 | 63 | $this->assertIsArray($e->enlace()); |
64 | 64 | } |
65 | 65 |