[Bridge\PhpUnit] Fix clock-mock registration
This commit is contained in:
parent
9e393291cb
commit
0a6a10a923
@ -56,6 +56,11 @@ class SymfonyTestsListener extends \PHPUnit_Framework_BaseTestListener
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
foreach ($suite->tests() as $test) {
|
||||||
|
if ($test instanceof \PHPUnit_Framework_TestSuite && in_array('time-sensitive', \PHPUnit_Util_Test::getGroups($test->getName()), true)) {
|
||||||
|
ClockMock::register($test->getName());
|
||||||
|
}
|
||||||
|
}
|
||||||
} elseif (2 === $this->state) {
|
} elseif (2 === $this->state) {
|
||||||
$skipped = array();
|
$skipped = array();
|
||||||
foreach ($suite->tests() as $test) {
|
foreach ($suite->tests() as $test) {
|
||||||
|
Reference in New Issue
Block a user