-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
There is a test that looks at the time of the response object, and randomly, they are not created in the same second, so the test fails. Make this more stable.
1) BR\SignedRequestBundle\Tests\EventListener\SignedRequestListenerTest::testMissingHeader
Expectation failed for method name is equal to <string:setResponse> when invoked 1 time(s)
Parameter 0 for invocation Symfony\Component\HttpKernel\Event\GetResponseEvent::setResponse(Symfony\Component\HttpFoundation\Response Object (...)) does not match expected value.
Failed asserting that two objects are equal.
--- Expected
+++ Actual
@@ @@
'date' => Array (
- 0 => 'Wed, 03 Jul 2013 06:36:37 GMT'
+ 0 => 'Wed, 03 Jul 2013 06:36:38 GMT'
)
)
'cacheControl' => Array ()
)
'content' => 'Major fail'
'version' => '1.0'
'statusCode' => 400
'statusText' => 'Bad Request'
'charset' => null
)
Metadata
Metadata
Assignees
Labels
No labels