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

Skip to content

Commit bad4f19

Browse files
author
Carlos Tasada
committed
Registering Request to ClockMock
1 parent 7c893b1 commit bad4f19

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
namespace Symfony\Component\HttpKernel\Tests\Fragment;
1313

1414
use PHPUnit\Framework\TestCase;
15+
use Symfony\Bridge\PhpUnit\ClockMock;
1516
use Symfony\Component\EventDispatcher\EventDispatcher;
1617
use Symfony\Component\HttpFoundation\Request;
1718
use Symfony\Component\HttpFoundation\RequestStack;
@@ -28,6 +29,11 @@
2829
*/
2930
class InlineFragmentRendererTest extends TestCase
3031
{
32+
protected function setUp(): void
33+
{
34+
ClockMock::register(Request::class);
35+
}
36+
3137
public function testRender()
3238
{
3339
$strategy = new InlineFragmentRenderer($this->getKernel($this->returnValue(new Response('foo'))));

0 commit comments

Comments
 (0)