8000 [HttpKernel] Clean clock-mock injection, replaced by #16455 · symfony/symfony@388534e · GitHub
[go: up one dir, main page]

Skip to content

Commit 388534e

Browse files
[HttpKernel] Clean clock-mock injection, replaced by #16455
1 parent 38a92c8 commit 388534e

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

src/Symfony/Component/HttpKernel/Tests/Fragment/FragmentHandlerTest.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,12 @@
1414
use Symfony\Component\HttpKernel\Fragment\FragmentHandler;
1515
use Symfony\Component\HttpFoundation\Request;
1616
use Symfony\Component\HttpFoundation\Response;
17-
use Symfony\Bridge\PhpUnit\ClockMock;
1817

1918
/**
2019
* @group time-sensitive
2120
*/
2221
class FragmentHandlerTest extends \PHPUnit_Framework_TestCase
2322
{
24-
protected function setUp()
25-
{
26-
if (class_exists('Symfony\Bridge\PhpUnit\ClockMock')) {
27-
ClockMock::register('Symfony\Component\HttpFoundation\Request');
28-
}
29-
}
30-
3123
/**
3224
* @expectedException \InvalidArgumentException
3325
*/

src/Symfony/Component/HttpKernel/Tests/HttpCache/HttpCacheTestCase.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
use Symfony\Component\HttpKernel\HttpCache\HttpCache;
1717
use Symfony\Component\HttpKernel\HttpCache\Store;
1818
use Symfony\Component\HttpKernel\HttpKernelInterface;
19-
use Symfony\Bridge\PhpUnit\ClockMock;
2019

2120
class HttpCacheTestCase extends \PHPUnit_Framework_TestCase
2221
{
@@ -32,9 +31,6 @@ class HttpCacheTestCase extends \PHPUnit_Framework_TestCase
3231

3332
protected function setUp()
3433
{
35-
if (class_exists('Symfony\Bridge\PhpUnit\ClockMock')) {
36-
ClockMock::register('Symfony\Component\HttpFoundation\Request');
37-
}
3834
$this->kernel = null;
3935

4036
$this->cache = null;

0 commit comments

Comments
 (0)
0