コード例 #1
0
 function fail($message = '')
 {
     PHPUnit_TestCase::fail($message);
     // save in global var that this particular test has failed
     // (but only if not called from subclass objects / multitests)
     if (function_exists('debug_backtrace') && strtolower(get_class($this)) == 'localhosttests') {
         global $failed_tests;
         $trace = debug_backtrace();
         for ($i = 0; $i < count($trace); $i++) {
             if (strpos($trace[$i]['function'], 'test') === 0) {
                 $failed_tests[$trace[$i]['function']] = true;
                 break;
             }
         }
     }
 }
コード例 #2
0
 function Tests_Auth_OpenID_Tester($uris, $type_uris, $delegate)
 {
     $this->uris = $uris;
     $this->type_uris = $type_uris;
     $this->local_id = $delegate;
     parent::PHPUnit_TestCase();
 }
コード例 #3
0
 public function __construct($name) {
   parent::__construct($name);
 }
コード例 #4
0
 function MDB2_Changes_Test($name)
 {
     parent::__construct($name);
 }
コード例 #5
0
 function MDB2_Validate_Test($name)
 {
     parent::__construct($name);
 }
コード例 #6
0
 function MDB2_Schema_Test($name)
 {
     parent::__construct($name);
 }
コード例 #7
0
 function _TestCase($input_name, $id_name, $result_name, $success)
 {
     $this->input_name = $input_name;
     $this->id_name = $id_name;
     $this->result_name = $result_name;
     $this->success = $success;
     $this->fetcher = new TestFetcher($this->base_url);
     parent::PHPUnit_TestCase();
 }
コード例 #8
0
ファイル: _init.php プロジェクト: Artea/freebeer
 function fbTestCase($name)
 {
     parent::PHPUnit_TestCase($name);
 }
コード例 #9
0
ファイル: unit.php プロジェクト: BackupTheBerlios/amber-svn
 function assertContains($needle, $haystack, $message = '')
 {
     parent::assertTrue(strpos($haystack, $needle), $message);
 }