當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。