Ver Mensaje Individual
  #3 (permalink)  
Antiguo 11/11/2010, 20:13
FER_S
 
Fecha de Ingreso: agosto-2005
Mensajes: 104
Antigüedad: 18 años, 8 meses
Puntos: 0
Respuesta: probando phpunit

Hola , este es la prueba que estaba haciendo :

Código PHP:
Ver original
  1. require_once('PHPUnit/Framework.php');
  2.    
  3.     class ArrayTest extends PHPUnit_Framework_TestCase{
  4.        
  5.    
  6.         public function testNewArrayIsEmpty(){
  7.             $fixture = array();
  8.                         $this->assertEquals(0,sizeof($fixture));
  9.         }
  10.        
  11.         public function testArrayContainsAnElement(){
  12.             $fixture = array();
  13.             $fixture[] = 'Element' ;
  14.             $this->assertEquals(1,sizeof($fixture)) ;
  15.         }
  16.    
  17.     }

esto tiene que ir require_once('PHPUnit/Framework.php');
para probar phpunit