本文整理汇总了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;
}
示例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);
}
示例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");
}
}
示例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");
}
}
示例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);
}
示例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;
}
示例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);
}
示例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);
}
示例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());
}
示例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);
}
示例11: startTestSuite
public function startTestSuite(\PHPUnit_Framework_TestSuite $suite)
{
parent::startTestSuite($suite);
$this->maxColumn = 150;
}
示例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();
}
}