예제 #1
0
파일: PEAR.php 프로젝트: ookwudili/chisimba
 /**
  * A test ended.
  *
  * @param  PHPUnit2_Framework_Test $test
  * @access public
  */
 public function endTest(PHPUnit2_Framework_Test $test)
 {
     $this->log->info(sprintf('Test "%s" ended.', $test->getName()));
 }
예제 #2
0
 /**
  * A test ended.
  *
  * @param  PHPUnit2_Framework_Test $test
  * @access public
  */
 public function endTest(PHPUnit2_Framework_Test $test)
 {
     $prettifiedName = $this->prettifier->prettifyTestMethod($test->getName());
     if (!isset($this->tests[$prettifiedName])) {
         if (!$this->testFailed) {
             $this->tests[$prettifiedName]['success'] = 1;
             $this->tests[$prettifiedName]['failure'] = 0;
         } else {
             $this->tests[$prettifiedName]['success'] = 0;
             $this->tests[$prettifiedName]['failure'] = 1;
         }
     } else {
         if (!$this->testFailed) {
             $this->tests[$prettifiedName]['success']++;
         } else {
             $this->tests[$prettifiedName]['failure']++;
         }
     }
 }
예제 #3
0
 /**
  * A test ended.
  *
  * @param  PHPUnit2_Framework_Test  $test
  * @access public
  */
 public function endTest(PHPUnit2_Framework_Test $test)
 {
     $this->testEnded($test->getName());
 }
예제 #4
0
 public function startTest(PHPUnit2_Framework_Test $test)
 {
     echo '<tr>';
     $test->failed = false;
     echo '<td>' . $test->getName() . '</td>';
 }
예제 #5
0
 /**
  * A test started.
  *
  * @param  PHPUnit2_Framework_Test  $test
  * @access public
  */
 public function startTest(PHPUnit2_Framework_Test $test)
 {
     $this->testStarted($test->getName());
 }
예제 #6
0
파일: XML.php 프로젝트: ookwudili/chisimba
 /**
  * A test started.
  *
  * @param  PHPUnit2_Framework_Test $test
  * @access public
  */
 public function startTest(PHPUnit2_Framework_Test $test)
 {
     $testCase = $this->document->createElement('testcase');
     $testCase->setAttribute('name', $test->getName());
     $testCase->setAttribute('class', get_class($test));
     $this->testSuites[$this->testSuiteLevel]->appendChild($testCase);
     $this->currentTestCase = $testCase;
     $this->testSuiteTests[$this->testSuiteLevel]++;
     $this->timer->start();
 }
예제 #7
0
 /**
  * Informs the result that a test was completed.
  *
  * @param  PHPUnit2_Framework_Test
  * @access public
  */
 public function endTest(PHPUnit2_Framework_Test $test)
 {
     if ($test instanceof PHPUnit2_Framework_TestCase) {
         $this->codeCoverageInformation[$test->getName()] = $test->getCodeCoverageInformation();
     }
     foreach ($this->listeners as $listener) {
         $listener->endTest($test);
     }
 }