public function PHPUnit_Extensions_TicketListener::startTest in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/phpunit/phpunit/src/Extensions/TicketListener.php \PHPUnit_Extensions_TicketListener::startTest()
A test started.
Parameters
PHPUnit_Framework_Test $test:
Overrides PHPUnit_Framework_TestListener::startTest
File
- vendor/
phpunit/ phpunit/ src/ Extensions/ TicketListener.php, line 110
Class
- PHPUnit_Extensions_TicketListener
- Base class for test listeners that interact with an issue tracker.
Code
public function startTest(PHPUnit_Framework_Test $test) {
if (!$test instanceof PHPUnit_Framework_Warning) {
if ($this->ran) {
return;
}
$name = $test
->getName(false);
$tickets = PHPUnit_Util_Test::getTickets(get_class($test), $name);
foreach ($tickets as $ticket) {
$this->ticketCounts[$ticket][$name] = 1;
}
$this->ran = true;
}
}