Documentación GVHIDRA 3.1.5
Referencia de la Clase smartyCampoTextoTest

Métodos públicos

 testSinParametros ()
 testConNombre ()
 testConId ()

Métodos protegidos

 setUp ()
 tearDown ()

Atributos privados

 $s

Descripción detallada

Test class for global functions Generated by PHPUnit on 2007-10-22 at 13:24:06.

Definición en la línea 10 del archivo smartyCampoTextoTest.php.


Documentación de las funciones miembro

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 19 del archivo smartyCampoTextoTest.php.

                               {
        //global $s;
        $this->s = new Smarty_Phrame();

    }
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 31 del archivo smartyCampoTextoTest.php.

                                  {
    }
testConId ( )

Definición en la línea 55 del archivo smartyCampoTextoTest.php.

                                {
        $expected = <<<HEREDOC
<span id='IGEPVisiblenif' style='visibility:hidden;; ' ><label style='font-weight: bold; display:none; ' id='txt_nif' for='nif'>Nif:</label>
<input type='text' name='nif' id='nif' value=""   style='padding:0px; padding-right:0px; '     onFocus="javascript:if (this.readOnly != true) { this.select();;};" onDblClick="javascript:if (this.readOnly != true) { this.select();;};"  /></span>
HEREDOC;
        $this->assertEquals(smarty_function_CWCampoTexto(array('nombre'=>'nif', 'editable'=>0),$this->s),$expected,'con id');

        $expected = <<<HEREDOC
<span id='IGEPVisiblenif' style='visibility:hidden;; ' ><label style='font-weight: bold; display:none; ' id='txt_nif' for='nif'>Nif:</label>
<input type='text' name='nif' id='nif' value="" tabindex='-1'  style='padding:0px; padding-right:0px; '     onFocus="javascript:if (this.readOnly != true) { this.select();;};" onDblClick="javascript:if (this.readOnly != true) { this.select();;};"  /></span>
HEREDOC;
      $this->assertEquals(smarty_function_CWCampoTexto(array('nombre'=>'nif', 'editable'=>'false'),$this->s),$expected,'con nombre');

        $expected = <<<HEREDOC
<span id='IGEPVisiblenif' style='visibility:hidden;; ' ><label style='font-weight: bold; display:none; ' id='txt_nif' for='nif'>Nif:</label>
<input type='text' name='nif' id='nif' value=""   style='padding:0px; padding-right:0px; '     onFocus="javascript:if (this.readOnly != true) { this.select();;};" onDblClick="javascript:if (this.readOnly != true) { this.select();;};"  /></span>
HEREDOC;
      $this->assertEquals(smarty_function_CWCampoTexto(array('nombre'=>'nif', 'editable'=>'true'),$this->s),$expected,'con nombre');
    }
testConNombre ( )

Definición en la línea 47 del archivo smartyCampoTextoTest.php.

                                    {
        $expected = <<<HEREDOC
<span id='IGEPVisiblenif' style='visibility:hidden;; ' ><label style='font-weight: bold; display:none; ' id='txt_nif' for='nif'>Nif:</label>
<input type='text' name='nif' id='nif' value=""   style='padding:0px; padding-right:0px; '     onFocus="javascript:if (this.readOnly != true) { this.select();;};" onDblClick="javascript:if (this.readOnly != true) { this.select();;};"  /></span>
HEREDOC;
        $this->assertEquals(smarty_function_CWCampoTexto(array('nombre'=>'nif'),$this->s),$expected,'con nombre');
    }
testSinParametros ( )

comprobar si existe la variable necesaria para aplicacion

Definición en la línea 37 del archivo smartyCampoTextoTest.php.

                                        {
        $expected = <<<HEREDOC
<span id='IGEPVisibleCWCampoTexto1' style='visibility:hidden;; ' ><label style='font-weight: bold; display:none; ' id='txt_CWCampoTexto1' for='CWCampoTexto1'>CWCampoTexto1:</label>
<input type='text' name='CWCampoTexto1' id='CWCampoTexto1' value=""   style='padding:0px; padding-right:0px; '     onFocus="javascript:if (this.readOnly != true) { this.select();;};" onDblClick="javascript:if (this.readOnly != true) { this.select();;};"  /></span>
HEREDOC;
        $this->assertEquals(smarty_function_CWCampoTexto(array(),$this->s),$expected,'sin parametros');
        $ss = new Smarty_Phrame();
        $this->assertEquals(smarty_function_CWCampoTexto(array('name'=>'nif'),$ss),$expected,'ignora name');
    }

Documentación de los campos

$s [private]

Definición en la línea 11 del archivo smartyCampoTextoTest.php.


La documentación para esta clase fue generada a partir del siguiente fichero: