File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -32,9 +32,13 @@ public function testRenderFallbackWithObjectAttributesIsDeprecated()
32
32
{
33
33
$ deprecations = array ();
34
34
set_error_handler (function ($ type , $ message ) use (&$ deprecations ) {
35
- if (E_USER_DEPRECATED === $ type ) {
36
- $ deprecations [] = $ message ;
35
+ if (E_USER_DEPRECATED !== $ type ) {
36
+ restore_error_handler ();
37
+
38
+ return call_user_func_array ('PHPUnit_Util_ErrorHandler::handleError ' , func_get_args ());
37
39
}
40
+
41
+ $ deprecations [] = $ message ;
38
42
});
39
43
40
44
$ strategy = new EsiFragmentRenderer (new Esi (), $ this ->getInlineStrategy (true ), new UriSigner ('foo ' ));
@@ -45,10 +49,10 @@ public function testRenderFallbackWithObjectAttributesIsDeprecated()
45
49
46
50
$ strategy ->render ($ reference , $ request );
47
51
52
+ restore_error_handler ();
53
+
48
54
$ this ->assertCount (1 , $ deprecations );
49
55
$ this ->assertContains ('Passing objects as part of URI attributes to the ESI and SSI rendering strategies is deprecated ' , $ deprecations [0 ]);
50
-
51
- restore_error_handler ();
52
56
}
53
57
54
58
public function testRender ()
You can’t perform that action at this time.
0 commit comments