![]() |
Documentación GVHIDRA 3.1.5
|
Métodos públicos | |
testExisteColEmail () | |
testCorreoUsuario () | |
testCorreoNREGPGV () | |
testCorreoListaUsuariosModulo () | |
testCorreoListaUsuariosAplicacion () | |
testCorreoLista () | |
testSinAnexo () | |
testConAnexo () | |
Métodos protegidos | |
setUp () | |
tearDown () |
Test class for IgepCorreo. Generated by PHPUnit on 2008-01-29 at 09:08:36.
Definición en la línea 13 del archivo IgepCorreoTest.php.
setUp | ( | ) | [protected] |
Sets up the fixture, for example, opens a network connection. This method is called before a test is executed.
protected
Definición en la línea 21 del archivo IgepCorreoTest.php.
{ }
tearDown | ( | ) | [protected] |
Tears down the fixture, for example, closes a network connection. This method is called after a test is executed.
protected
Definición en la línea 30 del archivo IgepCorreoTest.php.
{ }
testConAnexo | ( | ) |
Definición en la línea 132 del archivo IgepCorreoTest.php.
{ // Remove the following lines when you implement this test. $this->markTestIncomplete( 'This test has not been implemented yet.' ); }
testCorreoLista | ( | ) |
Definición en la línea 101 del archivo IgepCorreoTest.php.
{ $res = IgepCorreo::correoLista(''); $this->assertType('array', $res); $this->assertTrue(empty($res),'devuelve resultado cuando no hay select'); $res = IgepCorreo::correoLista('select \'aaa@gva.es\' as "xx" from dual'); $this->assertType('array', $res); $this->assertTrue(empty($res[0]),'no devuelve resultado de una select constante sin columna '.COL_EMAIL); $res = IgepCorreo::correoLista('select \'aaa@gva.es\' as "'.COL_EMAIL.'" from dual'); $this->assertType('array', $res); $this->assertEquals($res[0],'aaa@gva.es','no devuelve resultado de una select constante'); $res = IgepCorreo::correoLista('select \'aaa@gva.es\' as "'.COL_EMAIL.'" from dual union select \'bbb@gva.es\' as "'.COL_EMAIL.'" from dual'); $this->assertType('array', $res); $this->assertEquals($res,array('aaa@gva.es','bbb@gva.es'),'no devuelve resultado de una select constante con 2 filas'); }
testCorreoListaUsuariosAplicacion | ( | ) |
Definición en la línea 91 del archivo IgepCorreoTest.php.
{ // Remove the following lines when you implement this test. $this->markTestIncomplete( 'This test has not been implemented yet.' ); }
testCorreoListaUsuariosModulo | ( | ) |
Definición en la línea 81 del archivo IgepCorreoTest.php.
{ // Remove the following lines when you implement this test. $this->markTestIncomplete( 'This test has not been implemented yet.' ); }
testCorreoNREGPGV | ( | ) |
Definición en la línea 62 del archivo IgepCorreoTest.php.
{ $res = IgepCorreo::correoNREGPGV(''); $this->assertType('array', $res); $this->assertTrue(empty($res),'devuelve resultado cuando no hay usuario (cadena)'); $res = IgepCorreo::correoNREGPGV(array()); $this->assertType('array', $res); $this->assertTrue(empty($res),'devuelve resultado cuando no hay usuario (array)'); //TODO: aislar funciones de bd, para eso IgepCorreo no debe ser estatica // $stub = $this->getMock('IgepCorreo', array('correoLista')); // $stub->expects($this->any()) // ->method('correoLista') // ->will($this->returnValue(array('abc@gva.es','ccc@gva.es'))); // $this->assertEquals($stub->correoNREGPGV('2222'),'aa'); }
testCorreoUsuario | ( | ) |
Definición en la línea 46 del archivo IgepCorreoTest.php.
{ $res = IgepCorreo::correoUsuario(''); $this->assertType('array', $res); $this->assertTrue(empty($res),'devuelve resultado cuando no hay usuario'); $res = IgepCorreo::correoUsuario('usuarioXXYY'); $this->assertType('array', $res); $this->assertEquals($res[0],'','devuelve correo de usuario inexistente'); $res = IgepCorreo::correoUsuario('GASPAR'); $this->assertEquals($res[0],'quiles_gas@gva.es','no devuelve correo de usuario'); }
testExisteColEmail | ( | ) |
comprobar si existe una constante necesaria para aplicacion
Definición en la línea 36 del archivo IgepCorreoTest.php.
testSinAnexo | ( | ) |
Definición en la línea 122 del archivo IgepCorreoTest.php.
{ // Remove the following lines when you implement this test. $this->markTestIncomplete( 'This test has not been implemented yet.' ); }