| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 11 | 
| Code Lines | 6 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 26 | public function testSiEjecutarConsultaSinDatosFallaLanzaExcepcion() | ||
| 27 |     { | ||
| 28 | |||
| 29 | $conexion = new CrearConexionBaseDeDatos; | ||
| 30 | $conexion = $conexion->crear([]); | ||
| 31 | |||
| 32 | $consulta = new EjecutarConsultaSinDatos( | ||
| 33 | $conexion | ||
| 34 | ); | ||
| 35 | $this->expectException(Exception::class); | ||
| 36 |         $this->assertInstanceOf(PDOStatement::class, $consulta->query('SELECT FROM prueba')); | ||
| 37 | } | ||
| 40 |