mirror of
https://github.com/rmontanana/inventario2.git
synced 2025-08-19 01:15:56 +00:00
En mantenimiento puesta la gestión de URL para que vuelva siempre a donde estaba tanto desde altas, modificaciones o bajas
Reformateado de ficheros
This commit is contained in:
@@ -16,7 +16,8 @@ class ConfiguracionTest extends PHPUnit_Framework_TestCase {
|
||||
* Sets up the fixture, for example, opens a network connection.
|
||||
* This method is called before a test is executed.
|
||||
*/
|
||||
protected function setUp() {
|
||||
protected function setUp()
|
||||
{
|
||||
$this->config = new Configuracion;
|
||||
}
|
||||
|
||||
@@ -24,14 +25,16 @@ class ConfiguracionTest extends PHPUnit_Framework_TestCase {
|
||||
* Tears down the fixture, for example, closes a network connection.
|
||||
* This method is called after a test is executed.
|
||||
*/
|
||||
protected function tearDown() {
|
||||
protected function tearDown()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @covers Configuracion::ejecuta
|
||||
*/
|
||||
public function testEjecuta() {
|
||||
public function testEjecuta()
|
||||
{
|
||||
$this->assertFileExists('inc/Configuracion.inc', "El fichero de configuración no existe");
|
||||
$permisos = fileperms('inc/Configuracion.inc');
|
||||
//Comprueba que el propietario o el grupo tengan derecho de escritura
|
||||
@@ -39,7 +42,7 @@ class ConfiguracionTest extends PHPUnit_Framework_TestCase {
|
||||
$this->assertTrue($test, "El fichero de configuración no tiene los permisos adecuados");
|
||||
//Comprueba que existan todas las claves editables en el fichero de configuración.
|
||||
$fichero = $this->config->obtieneFichero();
|
||||
$this->assertNotNull($fichero,"El fichero de configuración no se ha leído o no tiene contenido");
|
||||
$this->assertNotNull($fichero, "El fichero de configuración no se ha leído o no tiene contenido");
|
||||
$lineas = explode("\n", $fichero);
|
||||
$campos = $this->config->obtieneLista();
|
||||
$numero = 0;
|
||||
@@ -68,4 +71,5 @@ class ConfiguracionTest extends PHPUnit_Framework_TestCase {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
@@ -1,11 +1,12 @@
|
||||
<?php
|
||||
|
||||
require_once('Menu.php');
|
||||
|
||||
/**
|
||||
* Generated by PHPUnit_SkeletonGenerator 1.2.1 on 2014-03-08 at 17:47:42.
|
||||
*/
|
||||
class MenuTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
class MenuTest extends PHPUnit_Framework_TestCase {
|
||||
|
||||
/**
|
||||
* @var Menu
|
||||
*/
|
||||
@@ -26,6 +27,7 @@ class MenuTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
protected function tearDown()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -36,8 +38,10 @@ class MenuTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
// Remove the following lines when you implement this test.
|
||||
$this->markTestIncomplete(
|
||||
'This test has not been implemented yet.'
|
||||
'This test has not been implemented yet.'
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
@@ -1,11 +1,13 @@
|
||||
<?php
|
||||
|
||||
require_once('inc/configuracion.inc');
|
||||
require_once('Sql.php');
|
||||
|
||||
/**
|
||||
* Generated by PHPUnit_SkeletonGenerator 1.2.1 on 2014-03-08 at 01:19:34.
|
||||
*/
|
||||
class SqlTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
class SqlTest extends PHPUnit_Framework_TestCase {
|
||||
|
||||
/**
|
||||
* @var Sql
|
||||
*/
|
||||
@@ -20,7 +22,7 @@ class SqlTest extends PHPUnit_Framework_TestCase
|
||||
protected function setUp()
|
||||
{
|
||||
$this->bd = new Sql(SERVIDOR, USUARIO, CLAVE, BASEDATOSTEST);
|
||||
$this->assertFalse($this->bd->error(),"No se ha conectado a la base de datos de pruebas [".BASEDATOSTEST."]");
|
||||
$this->assertFalse($this->bd->error(), "No se ha conectado a la base de datos de pruebas [" . BASEDATOSTEST . "]");
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -29,6 +31,7 @@ class SqlTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
protected function tearDown()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -39,7 +42,7 @@ class SqlTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
// Remove the following lines when you implement this test.
|
||||
$this->markTestIncomplete(
|
||||
'This test has not been implemented yet.'
|
||||
'This test has not been implemented yet.'
|
||||
);
|
||||
}
|
||||
|
||||
@@ -51,7 +54,7 @@ class SqlTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
// Remove the following lines when you implement this test.
|
||||
$this->markTestIncomplete(
|
||||
'This test has not been implemented yet.'
|
||||
'This test has not been implemented yet.'
|
||||
);
|
||||
}
|
||||
|
||||
@@ -62,8 +65,6 @@ class SqlTest extends PHPUnit_Framework_TestCase
|
||||
public function testEjecuta()
|
||||
{
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -74,7 +75,7 @@ class SqlTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
// Remove the following lines when you implement this test.
|
||||
$this->markTestIncomplete(
|
||||
'This test has not been implemented yet.'
|
||||
'This test has not been implemented yet.'
|
||||
);
|
||||
}
|
||||
|
||||
@@ -86,7 +87,7 @@ class SqlTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
// Remove the following lines when you implement this test.
|
||||
$this->markTestIncomplete(
|
||||
'This test has not been implemented yet.'
|
||||
'This test has not been implemented yet.'
|
||||
);
|
||||
}
|
||||
|
||||
@@ -98,7 +99,7 @@ class SqlTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
// Remove the following lines when you implement this test.
|
||||
$this->markTestIncomplete(
|
||||
'This test has not been implemented yet.'
|
||||
'This test has not been implemented yet.'
|
||||
);
|
||||
}
|
||||
|
||||
@@ -110,7 +111,7 @@ class SqlTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
// Remove the following lines when you implement this test.
|
||||
$this->markTestIncomplete(
|
||||
'This test has not been implemented yet.'
|
||||
'This test has not been implemented yet.'
|
||||
);
|
||||
}
|
||||
|
||||
@@ -122,7 +123,7 @@ class SqlTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
// Remove the following lines when you implement this test.
|
||||
$this->markTestIncomplete(
|
||||
'This test has not been implemented yet.'
|
||||
'This test has not been implemented yet.'
|
||||
);
|
||||
}
|
||||
|
||||
@@ -134,7 +135,7 @@ class SqlTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
// Remove the following lines when you implement this test.
|
||||
$this->markTestIncomplete(
|
||||
'This test has not been implemented yet.'
|
||||
'This test has not been implemented yet.'
|
||||
);
|
||||
}
|
||||
|
||||
@@ -146,7 +147,7 @@ class SqlTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
// Remove the following lines when you implement this test.
|
||||
$this->markTestIncomplete(
|
||||
'This test has not been implemented yet.'
|
||||
'This test has not been implemented yet.'
|
||||
);
|
||||
}
|
||||
|
||||
@@ -158,7 +159,7 @@ class SqlTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
// Remove the following lines when you implement this test.
|
||||
$this->markTestIncomplete(
|
||||
'This test has not been implemented yet.'
|
||||
'This test has not been implemented yet.'
|
||||
);
|
||||
}
|
||||
|
||||
@@ -170,7 +171,7 @@ class SqlTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
// Remove the following lines when you implement this test.
|
||||
$this->markTestIncomplete(
|
||||
'This test has not been implemented yet.'
|
||||
'This test has not been implemented yet.'
|
||||
);
|
||||
}
|
||||
|
||||
@@ -182,7 +183,7 @@ class SqlTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
// Remove the following lines when you implement this test.
|
||||
$this->markTestIncomplete(
|
||||
'This test has not been implemented yet.'
|
||||
'This test has not been implemented yet.'
|
||||
);
|
||||
}
|
||||
|
||||
@@ -194,8 +195,10 @@ class SqlTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
// Remove the following lines when you implement this test.
|
||||
$this->markTestIncomplete(
|
||||
'This test has not been implemented yet.'
|
||||
'This test has not been implemented yet.'
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
Reference in New Issue
Block a user