Ejemplo n.º 1
0
 /**
  * Returns an array containing all test that were found
  * @return Ambigous <boolean, multitype:string >
  */
 public function getTestCollection()
 {
     try {
         return CIUnit_Util_FileLoader::collectTests();
     } catch (CIUnit_Framework_Exception_CIUnitException $e) {
         $this->runFailure = $e->getMessage();
     }
     return array();
 }
Ejemplo n.º 2
0
 public function __construct($class = '')
 {
     if ($class == '') {
         throw new CIUnit_Framework_Exception_InvalidArgument(1, 'must not be NULL');
     }
     // Cheack and load all test cases
     CIUnit_Util_FileLoader::checkAndLoad($class);
     $this->className = $class;
 }