Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Request
ClockMock
1 parent 7c893b1 commit bad4f19Copy full SHA for bad4f19
src/Symfony/Component/HttpKernel/Tests/Fragment/InlineFragmentRendererTest.php
@@ -12,6 +12,7 @@
12
namespace Symfony\Component\HttpKernel\Tests\Fragment;
13
14
use PHPUnit\Framework\TestCase;
15
+use Symfony\Bridge\PhpUnit\ClockMock;
16
use Symfony\Component\EventDispatcher\EventDispatcher;
17
use Symfony\Component\HttpFoundation\Request;
18
use Symfony\Component\HttpFoundation\RequestStack;
@@ -28,6 +29,11 @@
28
29
*/
30
class InlineFragmentRendererTest extends TestCase
31
{
32
+ protected function setUp(): void
33
+ {
34
+ ClockMock::register(Request::class);
35
+ }
36
+
37
public function testRender()
38
39
$strategy = new InlineFragmentRenderer($this->getKernel($this->returnValue(new Response('foo'))));
0 commit comments