Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9562d6b

Browse filesBrowse files
committed
Fix transient tests
1 parent 4b8983a commit 9562d6b
Copy full SHA for 9562d6b

File tree

Expand file treeCollapse file tree

1 file changed

+5
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-3
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpKernel/Tests/Fragment/InlineFragmentRendererTest.php
+5-3Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
use Symfony\Component\HttpKernel\KernelEvents;
2424
use Symfony\Contracts\EventDispatcher\EventDispatcherInterface;
2525

26+
/**
27+
* @group time-sensitive
28+
*/
2629
class InlineFragmentRendererTest extends TestCase
2730
{
2831
public function testRender()
@@ -253,16 +256,15 @@ public function testIpAddressOfRangedTrustedProxyIsSetAsRemote()
253256
}
254257

255258
/**
256-
* Creates a Kernel expecting a request equals to $request
257-
* Allows delta in comparison in case REQUEST_TIME changed by 1 second.
259+
* Creates a Kernel expecting a request equals to $request.
258260
*/
259261
private function getKernelExpectingRequest(Request $request, $strict = false)
260262
{
261263
$kernel = $this->getMockBuilder(\Symfony\Component\HttpKernel\HttpKernelInterface::class)->getMock();
262264
$kernel
263265
->expects($this->once())
264266
->method('handle')
265-
->with($this->equalTo($request, 1))
267+
->with($request)
266268
->willReturn(new Response('foo'));
267269

268270
return $kernel;

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.