當前位置: 首頁>>代碼示例>>PHP>>正文


PHP SimpleReporter::paintCaseEnd方法代碼示例

本文整理匯總了PHP中SimpleReporter::paintCaseEnd方法的典型用法代碼示例。如果您正苦於以下問題:PHP SimpleReporter::paintCaseEnd方法的具體用法?PHP SimpleReporter::paintCaseEnd怎麽用?PHP SimpleReporter::paintCaseEnd使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在SimpleReporter的用法示例。


在下文中一共展示了SimpleReporter::paintCaseEnd方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: paintCaseEnd

 /**
  *    Paints the end of a test case. Will paint the page
  *    footer if the stack of tests has unwound.
  *    @param string $test_name   Name of test that is ending.
  *    @access public
  */
 public function paintCaseEnd($test_name)
 {
     parent::paintCaseEnd($test_name);
     //echo '<strong>Test Case: "' . $test_name . '" finished.</strong><br />';
     echo '</div>';
     flush();
 }
開發者ID:ivantcholakov,項目名稱:Bonfire,代碼行數:13,代碼來源:my_reporter.php

示例2: run

 /**
  *    Invokes run() on all of the held test cases, instantiating
  *    them if necessary.
  *    @param SimpleReporter $reporter    Current test reporter.
  *    @param int $port Port to report test results on
  *    @access public
  */
 function run(&$reporter, $port)
 {
     $count = count($this->_test_cases);
     for ($i = 0; $i < $count; $i++) {
         if (is_string($this->_test_cases[$i])) {
             $class = $this->_test_cases[$i];
             $test =& new $class();
             ob_start();
             $reporter->paintGroupStart($this->getLabel(), $this->getSize());
             $reporter->paintCaseStart($test->getLabel());
             $start = ob_get_contents();
             ob_end_clean();
             ob_start();
             $reporter->paintCaseEnd($test->getLabel());
             $reporter->paintGroupEnd($this->getLabel());
             $end = ob_get_contents();
             ob_end_clean();
             //the guts from SimpleTestCase::run($reporter) where
             $test->_runner = new EclipseRunner($test, $reporter, $start, $end, $port);
             $test->_runner->run();
             $output = $start;
             if ($i + 1 == $count) {
                 $output .= "<done/>";
             }
             $output .= $end;
             $sock = new SimpleSocket("127.0.0.1", $port, 5);
             $sock->write($output);
             $sock->close();
             echo $sock->getError();
         } else {
             $this->_test_cases[$i]->run($reporter, $port);
         }
     }
     return $reporter->getStatus();
 }
開發者ID:sebs,項目名稱:simpletest,代碼行數:42,代碼來源:eclipsetest.php

示例3: paintEnd

 /**
  *    Signals the appropriate end event on the
  *    listener.
  *    @param SimpleReporter $listener    Target for events.
  *    @access public
  */
 function paintEnd(&$listener)
 {
     $listener->paintCaseEnd($this->getName());
 }
開發者ID:BackupTheBerlios,項目名稱:limb-svn,代碼行數:10,代碼來源:xml.php

示例4: paintCaseEnd

 /**
  * acceptor for end of test case
  */
 public function paintCaseEnd($message)
 {
     parent::paintCaseEnd($message);
     $node = $this->_stack->pop();
     $current = $this->_stack->peek();
     if ($node->isFailed()) {
         $current->fail();
     }
     $current->putChild($node);
 }
開發者ID:guicara,項目名稱:simpletest,代碼行數:13,代碼來源:treemap_recorder.php

示例5: paintCaseEnd

 /**
  * @param string $testName
  */
 public function paintCaseEnd($testName)
 {
     parent::paintCaseEnd($testName);
     $this->junitXMLWriter->endTestSuite();
     $this->caseStarted = false;
 }
開發者ID:rsky,項目名稱:stagehand-testrunner,代碼行數:9,代碼來源:JUnitXMLReporter.php

示例6: paintCaseEnd

 /**
  *  テストケース終了
  *
  *  @access public
  *  @param string   $test_name  テスト名稱
  */
 function paintCaseEnd($test_name)
 {
     parent::paintCaseEnd($test_name);
     $this->report[] = array('type' => 'CaseEnd');
 }
開發者ID:hiroki-namekawa,項目名稱:test-upr,代碼行數:11,代碼來源:Ethna_UnitTestReporter.php

示例7: paintCaseEnd

 function paintCaseEnd($test_name)
 {
     parent::paintCaseEnd($test_name);
     $this->timer->stop();
 }
開發者ID:altesien,項目名稱:FinalProject,代碼行數:5,代碼來源:SimpleTestResultFormatter.php

示例8: paintCaseEnd

 /**
  * @param string $testName
  */
 public function paintCaseEnd($testName)
 {
     parent::paintCaseEnd($testName);
     $this->xmlWriter->endTestSuite();
 }
開發者ID:kumatch,項目名稱:stagehand-testrunner,代碼行數:8,代碼來源:JUnitXMLReporter.php

示例9: paintCaseEnd

 public function paintCaseEnd($testName)
 {
     parent::paintCaseEnd($testName);
     echo '                </table>', "\n";
     echo '            <br clear="all" />', "\n";
     echo '        </td>', "\n";
     echo '    </tr>', "\n";
     echo '</table>', "\n";
 }
開發者ID:PublicityPort,項目名稱:OpenCATS,代碼行數:9,代碼來源:CATSTestReporter.php

示例10: paintCaseEnd

 function paintCaseEnd($test_name)
 {
     print $this->_getIndent();
     print "</" . $this->_namespace . "case>\n";
     parent::paintCaseEnd($test_name);
 }
開發者ID:BackupTheBerlios,項目名稱:phpbase-svn,代碼行數:6,代碼來源:xml.php


注:本文中的SimpleReporter::paintCaseEnd方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。