Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7beea17

Browse files
Merge branch '2.7' into 2.8
* 2.7: [HttpKernel] Clean clock-mock injection, replaced by #16455
2 parents d253136 + c24ca43 commit 7beea17

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
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
@@ -25,9 +24,6 @@ class FragmentHandlerTest extends \PHPUnit_Framework_TestCase
2524

2625
protected function setUp()
2726
{
28-
if (class_exists('Symfony\Bridge\PhpUnit\ClockMock')) {
29-
ClockMock::register('Symfony\Component\HttpFoundation\Request');
30-
}
3127
$this->requestStack = $this->getMockBuilder('Symfony\\Component\\HttpFoundation\\RequestStack')
3228
->disableOriginalConstructor()
3329
->getMock()

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
{
@@ -33,9 +32,6 @@ class HttpCacheTestCase extends \PHPUnit_Framework_TestCase
3332

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

4137
$this->cache = null;

0 commit comments

Comments
 (0)