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


PHP PHPUnit_TextUI_ResultPrinter::startTestSuite方法代码示例

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


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

示例1: startTestSuite

 /**
  * @param PHPUnit_Framework_TestSuite $suite
  * @since Method available since Release 2.7.0
  */
 public function startTestSuite(PHPUnit_Framework_TestSuite $suite)
 {
     $oldVerbose = $this->verbose;
     $this->verbose = false;
     parent::startTestSuite($suite);
     $this->verbose = $oldVerbose;
 }
开发者ID:kumatch,项目名称:stagehand-testrunner,代码行数:11,代码来源:ResultPrinter.php

示例2: startTestSuite

 public function startTestSuite(\PHPUnit_Framework_TestSuite $suite)
 {
     if ($this->debug && is_null($this->timeColors)) {
         if (defined('DIABLO_PRINTER_TIME_COLORS') && is_array(DIABLO_PRINTER_TIME_COLORS)) {
             $this->timeColors = DIABLO_PRINTER_TIME_COLORS;
             krsort($this->timeColors, SORT_NUMERIC);
         } else {
             $this->timeColors = $this->defaultTimeColors;
         }
     }
     parent::startTestSuite($suite);
 }
开发者ID:diablomedia,项目名称:phpunit-pretty-printer,代码行数:12,代码来源:PrettyPrinter.php

示例3: startTestSuite

 public function startTestSuite(PHPUnit_Framework_TestSuite $suite)
 {
     parent::startTestSuite($suite);
     if (!$this->headerPrinted) {
         $header = " ______   __  __     ______     ______     ______     ______     ______    \n" . "/\\  == \\ /\\ \\_\\ \\   /\\  == \\   /\\  ___\\   /\\  ___\\   /\\___  \\   /\\  ___\\   \n" . "\\ \\  _-/ \\ \\  __ \\  \\ \\  __<   \\ \\  __\\   \\ \\  __\\   \\/_/  /__  \\ \\  __\\   \n" . " \\ \\_\\    \\ \\_\\ \\_\\  \\ \\_\\ \\_\\  \\ \\_____\\  \\ \\_____\\   /\\_____\\  \\ \\_____\\ \n" . "  \\/_/     \\/_/\\/_/   \\/_/ /_/   \\/_____/   \\/_____/   \\/_____/   \\/_____/ \n";
         $this->out($header, 'fg-blue', true);
         $this->out(" - - - - - - - - - T E S T   A L L   T H E   T H I N G S - - - - - - - - - ", 'fg-blue', true);
         $this->out('', '', true);
         $this->headerPrinted = true;
     }
     if ($suite->getName() != 'PHPUnit') {
         $this->out("BEGIN SUITE '" . $suite->getName() . "'\n");
     }
 }
开发者ID:mymizan,项目名称:phreeze,代码行数:14,代码来源:VerboseTestResultPrinter.php

示例4: startTestSuite

 /**
  * called at the initialization of each test suite
  */
 public function startTestSuite(\PHPUnit_Framework_TestSuite $suite)
 {
     parent::startTestSuite($suite);
     if (!$this->headerPrinted) {
         $header = "██████╗ ██╗  ██╗██████╗ ██╗   ██╗███╗   ██╗██╗████████╗\n██╔══██╗██║  ██║██╔══██╗██║   ██║████╗  ██║██║╚══██╔══╝\n██████╔╝███████║██████╔╝██║   ██║██╔██╗ ██║██║   ██║   \n██╔═══╝ ██╔══██║██╔═══╝ ██║   ██║██║╚██╗██║██║   ██║   \n██║     ██║  ██║██║     ╚██████╔╝██║ ╚████║██║   ██║   \n╚═╝     ╚═╝  ╚═╝╚═╝      ╚═════╝ ╚═╝  ╚═══╝╚═╝   ╚═╝  ";
         $this->out($header, 'fg-blue', true);
         $this->out(" - - - - T E S T   A L L   T H E   T H I N G S - - - - ", 'fg-blue', true);
         $this->out('', '', true);
         $this->headerPrinted = true;
     }
     if ($suite->getName() != 'PHPUnit') {
         $this->out("BEGIN SUITE '" . $suite->getName() . "'\n");
     }
 }
开发者ID:verysimple,项目名称:unit-test-printer,代码行数:17,代码来源:VerboseTestResultPrinter.php

示例5: startTestSuite

 public function startTestSuite(PHPUnit_Framework_TestSuite $suite)
 {
     echo "\n\n" . $suite->getName() . "\n";
     $this->_timeStats = array('cnt' => 0, 'min' => 9999999, 'max' => 0, 'avg' => 0, 'startTime' => 0, 'slowest' => '_ERROR_');
     parent::startTestSuite($suite);
 }
开发者ID:OXIDprojects,项目名称:debugax,代码行数:6,代码来源:oxPrinter.php

示例6: endTestSuite

 /**
  * A testsuite ended.
  *
  * @param  PHPUnit_Framework_TestSuite $suite
  * @since  Method available since Release 2.16.0
  */
 public function endTestSuite(PHPUnit_Framework_TestSuite $suite)
 {
     parent::startTestSuite($suite);
     $this->lastEvent = PHPUnit_TextUI_ResultPrinter::EVENT_TESTSUITE_END;
 }
开发者ID:nojimage,项目名称:stagehand-testrunner,代码行数:11,代码来源:DetailedProgressPrinter.php

示例7: startTestSuite

 /**
  * A test suite started.
  *
  * @param  PHPUnit_Framework_TestSuite $suite
  * @since  Method available since Release 2.2.0
  */
 public function startTestSuite(PHPUnit_Framework_TestSuite $suite)
 {
     //echo __METHOD__.chr(10);
     parent::startTestSuite($suite);
 }
开发者ID:ohaal,项目名称:selenium-zoetrope,代码行数:11,代码来源:PHPUnitTestListenerTestdox.php

示例8: startTestSuite

 /**
  * A testsuite started.
  *
  * @param PHPUnit_Framework_TestSuite $suite
  * @return void
  */
 public function startTestSuite(PHPUnit_Framework_TestSuite $suite)
 {
     $this->level++;
     $this->starttimes[$this->level] = microtime(true);
     $this->write(sprintf("%s> SUITE: %s\n", str_repeat('  ', $this->level), PHPUnit_Util_Test::describe($suite)));
     return parent::startTestSuite($suite);
 }
开发者ID:aoemedia,项目名称:menta,代码行数:13,代码来源:VerboseResultPrinter.php

示例9: startTestSuite

 /**
  * A test suite started.
  *
  * @param PHPUnit_Framework_TestSuite $suite
  */
 public function startTestSuite(PHPUnit_Framework_TestSuite $suite)
 {
     parent::startTestSuite($suite);
     wfDebugLog($this->logChannel, 'START suite ' . $suite->getName());
 }
开发者ID:MediaWiki-stable,项目名称:1.26.1,代码行数:10,代码来源:MediaWikiPHPUnitTestListener.php

示例10: startTestSuite

 /**
  * A testsuite started.
  *
  * @param  PHPUnit_Framework_TestSuite $suite
  */
 public function startTestSuite(PHPUnit_Framework_TestSuite $suite)
 {
     if (strlen($suite->getName())) {
         if ($this->lastEvent == PHPUnit_TextUI_ResultPrinter::EVENT_TESTSUITE_END || $this->lastEvent == PHPUnit_TextUI_ResultPrinter::EVENT_TEST_END) {
             $this->write("\n\n");
         }
         $this->write($suite->getName() . "\n");
     }
     parent::startTestSuite($suite);
 }
开发者ID:kumatch,项目名称:stagehand-testrunner,代码行数:15,代码来源:DetailedProgressPrinter.php

示例11: startTestSuite

 public function startTestSuite(\PHPUnit_Framework_TestSuite $suite)
 {
     parent::startTestSuite($suite);
     $this->maxColumn = 150;
 }
开发者ID:timetoogo,项目名称:pinq,代码行数:5,代码来源:TestRunner.php

示例12: startTestSuite

 /**
  * {@inheritdoc}
  */
 public function startTestSuite(\PHPUnit_Framework_TestSuite $suite)
 {
     if ($this->debug) {
         return parent::startTestSuite($suite);
     }
     if ($this->numTests == -1) {
         parent::startTestSuite($suite);
         $this->scoreboard->start();
     }
 }
开发者ID:whatthejeff,项目名称:nyancat-phpunit-resultprinter,代码行数:13,代码来源:ResultPrinter.php


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