8000 minor #16439 [HttpKernel] Fix time-sensitive test case (nicolas-grekas) · symfony/symfony@27f7be6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 27f7be6

Browse files
minor #16439 [HttpKernel] Fix time-sensitive test case (nicolas-grekas)
This PR was merged into the 2.3 branch. Discussion ---------- [HttpKernel] Fix time-sensitive test case | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Fixes these kind of failures: ``` 1) Symfony\Component\HttpKernel\Tests\Fragment\FragmentHandlerTest::testRender Expectation failed for method name is equal to <string:render> when invoked zero or more times Parameter 1 for invocation Symfony\Component\HttpKernel\Fragment\FragmentRendererInterface::render('/', Symfony\Component\HttpFoundation\Request Object (...), Array (...)) does not match expected value. Failed asserting that two objects are equal. --- Expected +++ Actual @@ @@ 'SERVER_PROTOCOL' => 'HTTP/1.1' - 'REQUEST_TIME' => 1446551470 + 'REQUEST_TIME' => 1446551469 'PATH_INFO' => '' 'REQUEST_METHOD' => 'GET' ``` Commits ------- c188b35 [HttpKernel] Fix time-sensitive test case
2 parents c4a3178 + c188b35 commit 27f7be6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
use Symfony\Component\HttpFoundation\Request;
1616
use Symfony\Component\HttpFoundation\Response;
1717

18+
/**
19+
* @group time-sensitive
20+
*/
1821
class FragmentHandlerTest extends \PHPUnit_Framework_TestCase
1922
{
2023
/**

0 commit comments

Comments
 (0)
0