8000 Merge branch '2.8' into 3.1 · src-run/symfony@74aa126 · GitHub
[go: up one dir, main page]

Skip to content

Commit 74aa126

Browse files
Merge branch '2.8' into 3.1
* 2.8: Fix time-sensitive tests that use data providers
2 parents a43ccb1 + 6095835 commit 74aa126

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Bridge/PhpUnit/SymfonyTestsListener.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public function addSkippedTest(\PHPUnit_Framework_Test $test, \Exception $e, $ti
142142
public function startTest(\PHPUnit_Framework_Test $test)
143143
{
144144
if (-2 < $this->state && $test instanceof \PHPUnit_Framework_TestCase) {
145-
$groups = \PHPUnit_Util_Test::getGroups(get_class($test), $test->getName());
145+
$groups = \PHPUnit_Util_Test::getGroups(get_class($test), $test->getName(false));
146146

147147
if (in_array('time-sensitive', $groups, true)) {
148148
ClockMock::register(get_class($test));
@@ -157,7 +157,7 @@ public function startTest(\PHPUnit_Framework_Test $test)
157157
public function endTest(\PHPUnit_Framework_Test $test, $time)
158158
{
159159
if (-2 < $this->state && $test instanceof \PHPUnit_Framework_TestCase) {
160-
$groups = \PHPUnit_Util_Test::getGroups(get_class($test), $test->getName());
160+
$groups = \PHPUnit_Util_Test::getGroups(get_class($test), $test->getName(false));
161161

162162
if (in_array('time-sensitive', $groups, true)) {
163163
ClockMock::withClockMock(false);

0 commit comments

Comments
 (0)
0