startTestSuite() public method

A testsuite started.
public startTestSuite ( PHPUnit_Framework_TestSuite $suite )
$suite PHPUnit_Framework_TestSuite
 /**
  * @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;
 }
 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);
 }
 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");
     }
 }
 /**
  * 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");
     }
 }
示例#5
0
 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);
 }
 /**
  * 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;
 }
 /**
  * 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);
 }
示例#8
0
 /**
  * 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);
 }
 /**
  * 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());
 }
 /**
  * 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);
 }
示例#11
0
 public function startTestSuite(\PHPUnit_Framework_TestSuite $suite)
 {
     parent::startTestSuite($suite);
     $this->maxColumn = 150;
 }
 /**
  * {@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();
     }
 }