当前位置: 首页>>代码示例>>PHP>>正文


PHP SimpleReporter::paintGroupStart方法代码示例

本文整理汇总了PHP中SimpleReporter::paintGroupStart方法的典型用法代码示例。如果您正苦于以下问题:PHP SimpleReporter::paintGroupStart方法的具体用法?PHP SimpleReporter::paintGroupStart怎么用?PHP SimpleReporter::paintGroupStart使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在SimpleReporter的用法示例。


在下文中一共展示了SimpleReporter::paintGroupStart方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: paintGroupStart

 /**
  * Signals / Paints the beginning of a TestSuite executing.
  * Starts the timer for the TestSuite execution time.
  *
  * @param 
  * @return void
  */
 function paintGroupStart($test_name, $size)
 {
     if (empty($this->_timeStart)) {
         $this->_timeStart = $this->_getTime();
     }
     parent::paintGroupStart($test_name, $size);
 }
开发者ID:evrard,项目名称:cakephp2x,代码行数:14,代码来源:cake_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: paintGroupStart

 function paintGroupStart($test_name, $size)
 {
     parent::paintGroupStart($test_name, $size);
     print $this->_getIndent();
     print "<" . $this->_namespace . "group size=\"{$size}\">\n";
     print $this->_getIndent(1);
     print "<" . $this->_namespace . "name>" . $this->toParsedXml($test_name) . "</" . $this->_namespace . "name>\n";
 }
开发者ID:BackupTheBerlios,项目名称:phpbase-svn,代码行数:8,代码来源:xml.php

示例4: run

 /**
  *    Sends a single error to the reporter.
  *    @param SimpleReporter $reporter    Current test reporter.
  *    @access public
  */
 function run(&$reporter) {
     $reporter->paintGroupStart($this->getLabel(), $this->getSize());
     $reporter->paintFail('Bad TestSuite [' . $this->getLabel() .
             '] with error [' . $this->_error . ']');
     $reporter->paintGroupEnd($this->getLabel());
     return $reporter->getStatus();
 }
开发者ID:nuckey,项目名称:moodle,代码行数:12,代码来源:test_case.php

示例5: paintStart

 /**
  *    Signals the appropriate start event on the
  *    listener.
  *    @param SimpleReporter $listener    Target for events.
  *    @access public
  */
 function paintStart(&$listener)
 {
     $listener->paintGroupStart($this->getName(), $this->getSize());
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:10,代码来源:xml.php

示例6: paintGroupStart

 /**
  * acceptor for start of test group node
  */
 public function paintGroupStart($message, $size)
 {
     parent::paintGroupStart($message, $size);
     $node = new TreemapNode('Group', $message);
     $this->_stack->push($node);
 }
开发者ID:guicara,项目名称:simpletest,代码行数:9,代码来源:treemap_recorder.php

示例7: paintGroupStart

 /**
  * @param string  $testName
  * @param integer $size
  */
 public function paintGroupStart($testName, $size)
 {
     parent::paintGroupStart($testName, $size);
     if (count($this->getTestList()) == 1) {
         $this->junitXMLWriter->startTestSuites();
     }
     $this->junitXMLWriter->startTestSuite($testName, $this->suite->countTests());
 }
开发者ID:rsky,项目名称:stagehand-testrunner,代码行数:12,代码来源:JUnitXMLReporter.php

示例8: run

 /**
  *    Invokes run() on all of the held test cases.
  *    @param SimpleReporter $reporter    Current test reporter.
  *    @access public
  */
 function run(&$reporter)
 {
     $reporter->paintGroupStart($this->getLabel(), $this->getSize());
     for ($i = 0; $i < count($this->_test_cases); $i++) {
         $this->_test_cases[$i]->run($reporter);
     }
     $reporter->paintGroupEnd($this->getLabel());
     return $reporter->getStatus();
 }
开发者ID:BackupTheBerlios,项目名称:limb-svn,代码行数:14,代码来源:simple_test.php

示例9: paintGroupStart

 /**
  * @param string  $testName
  * @param integer $size
  */
 public function paintGroupStart($testName, $size)
 {
     parent::paintGroupStart($testName, $size);
     $this->xmlWriter->startTestSuite($testName, $this->suite->countTests());
 }
开发者ID:kumatch,项目名称:stagehand-testrunner,代码行数:9,代码来源:JUnitXMLReporter.php

示例10: paintGroupStart

 public function paintGroupStart($testName, $size)
 {
     parent::paintGroupStart($testName, $size);
 }
开发者ID:PublicityPort,项目名称:OpenCATS,代码行数:4,代码来源:CATSTestReporter.php

示例11: paintGroupStart

 /**
  *    Paints the start of a group test. Will also paint
  *    the page header and footer if this is the
  *    first test. Will stash the size if the first
  *    start.
  *    @param string $test_name   Name of test that is starting.
  *    @param integer $size       Number of test cases starting.
  *    @access public
  */
 public function paintGroupStart($test_name, $size)
 {
     echo '<div class="test-group">';
     parent::paintGroupStart($test_name, $size);
 }
开发者ID:ivantcholakov,项目名称:Bonfire,代码行数:14,代码来源:my_reporter.php

示例12: paintGroupStart

 /**
  *    Paints the start of a group test. Will also paint
  *    the page header and footer if this is the
  *    first test. Will stash the size if the first
  *    start.
  *    @param string $test_name   Name of test that is starting.
  *    @param integer $size       Number of test cases starting.
  *    @access public
  */
 public function paintGroupStart($test_name, $size)
 {
     parent::paintGroupStart($test_name, $size);
     //echo '<h3>Test Suite: "' . $test_name . '" started.</h3>';
     //flush();
 }
开发者ID:68kb,项目名称:68kb,代码行数:15,代码来源:my_reporter.php

示例13: run

 /**
  *    Invokes run() on all of the held test cases, instantiating
  *    them if necessary.
  *    @param SimpleReporter $reporter    Current test reporter.
  *    @access public
  */
 function run(&$reporter)
 {
     $reporter->paintGroupStart($this->getLabel(), $this->getSize());
     for ($i = 0; $i < count($this->_test_cases); $i++) {
         if (is_string($this->_test_cases[$i])) {
             $class = $this->_test_cases[$i];
             $test =& new $class();
             $test->run($reporter);
         } else {
             $this->_test_cases[$i]->run($reporter);
         }
     }
     $reporter->paintGroupEnd($this->getLabel());
     return $reporter->getStatus();
 }
开发者ID:BGCX067,项目名称:ezpdo2-svn-to-git,代码行数:21,代码来源:simple_test.php

示例14: paintGroupStart

 /**
  * acceptor for start of test group node
  */
 function paintGroupStart($message, $size)
 {
     parent::paintGroupStart($message, $size);
     $node = new TreemapNode("Group", $message);
     $this->stack->push($node);
 }
开发者ID:GerHobbelt,项目名称:simpletest,代码行数:9,代码来源:treemap_recorder.php


注:本文中的SimpleReporter::paintGroupStart方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。