本文整理汇总了PHP中PHPUnit_TextUI_ResultPrinter::startTest方法的典型用法代码示例。如果您正苦于以下问题:PHP PHPUnit_TextUI_ResultPrinter::startTest方法的具体用法?PHP PHPUnit_TextUI_ResultPrinter::startTest怎么用?PHP PHPUnit_TextUI_ResultPrinter::startTest使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PHPUnit_TextUI_ResultPrinter
的用法示例。
在下文中一共展示了PHPUnit_TextUI_ResultPrinter::startTest方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: startTest
public function startTest(\PHPUnit_Framework_Test $test)
{
$this->className = get_class($test);
if (!$this->debug) {
parent::startTest($test);
}
}
示例2: startTest
public function startTest(PHPUnit_Framework_Test $test)
{
if ($this->_verbose) {
echo date('Y-m-d H:i:s') . ': starting ' . $test->toString() . "\n\n";
}
if ($this->_getProgressBar()) {
//erstellt sie beim ersten aufruf, nicht im kostruktor machen da sonst zu früh was rausgeschrieben wird
$this->writeProgress('.');
}
return parent::startTest($test);
}
示例3: startTest
/**
* A test started.
*
* @param PHPUnit_Framework_Test $test
* @access public
*/
public function startTest(PHPUnit_Framework_Test $test)
{
if ($this->verbose) {
echo "\n " . $test->getName();
}
$this->_timeStats['startTime'] = microtime(true);
parent::startTest($test);
}
示例4: startTest
public function startTest(\PHPUnit_Framework_Test $test)
{
if ($test instanceof Test) {
parent::startTest($test);
}
}
示例5: startTest
/**
* {@inheritdoc}
*/
public function startTest(PHPUnit_Framework_Test $test)
{
$this->className = get_class($test);
parent::startTest($test);
}
示例6: startTest
/**
* A test started.
*
* @param PHPUnit_Framework_Test $test
*/
public function startTest(PHPUnit_Framework_Test $test)
{
if ($this->lastEvent == PHPUnit_TextUI_ResultPrinter::EVENT_TEST_END || $this->lastEvent == PHPUnit_TextUI_ResultPrinter::EVENT_TESTSUITE_END) {
$this->write("\n");
}
$this->write(' ' . $test->getName() . ' ... ');
$this->lastEvent = PHPUnit_TextUI_ResultPrinter::EVENT_TEST_START;
parent::startTest($test);
}
示例7: startTest
/**
* A test started.
*
* @param PHPUnit_Framework_Test $test
*/
public function startTest(PHPUnit_Framework_Test $test)
{
//echo __METHOD__.chr(10);
parent::startTest($test);
}
示例8: startTest
/**
* A test started.
*
* @param PHPUnit_Framework_Test $test
*/
public function startTest(PHPUnit_Framework_Test $test)
{
parent::startTest($test);
wfDebugLog($this->logChannel, 'Start test ' . $this->getTestName($test));
}
示例9: startTest
/**
* A test started.
*
* @param PHPUnit_Framework_Test $test
*/
public function startTest(PHPUnit_Framework_Test $test)
{
if ($this->lastEvent === self::DATA_PROVIDER_END && end($this->suiteTestsRun) < end($this->testSuiteSize)) {
echo "\n", str_repeat(' ', count($this->testSuiteSize) - 1), '↳ ';
$this->column = count($this->testSuiteSize) * 2;
}
parent::startTest($test);
}
示例10: startTest
public function startTest(\PHPUnit_Framework_Test $test)
{
if ($test instanceof \Codeception\TestCase\Test) {
return parent::startTest($test);
}
}
示例11: startTest
/**
* @param PHPUnit_Framework_Test $test
*/
public function startTest(PHPUnit_Framework_Test $test)
{
$this->all_tests[] = PHPUnit_Util_Test::describe($test);
parent::startTest($test);
}
示例12: startTest
public function startTest(PHPUnit_Framework_Test $test)
{
echo "\n" . date('Y-m-d H:i:s') . ': starting ' . $test->toString() . "\n";
return parent::startTest($test);
}