Chris@0: --TEST-- Chris@0: Test DeprecationErrorHandler in default mode Chris@0: --FILE-- Chris@0: testLegacyFoo(); Chris@0: $foo->testNonLegacyBar(); Chris@0: Chris@14: register_shutdown_function(function () { Chris@14: exit('I get precedence over any exit statements inside the deprecation error handler.'); Chris@14: }); Chris@14: Chris@0: ?> Chris@0: --EXPECTF-- Chris@0: Unsilenced deprecation notices (3) Chris@0: Chris@14: 2x: unsilenced foo deprecation Chris@0: 2x in FooTestCase::testLegacyFoo Chris@0: Chris@14: 1x: unsilenced bar deprecation Chris@0: 1x in FooTestCase::testNonLegacyBar Chris@0: Chris@0: Remaining deprecation notices (1) Chris@0: Chris@14: 1x: silenced bar deprecation Chris@0: 1x in FooTestCase::testNonLegacyBar Chris@0: Chris@0: Legacy deprecation notices (1) Chris@0: Chris@0: Other deprecation notices (1) Chris@0: Chris@14: 1x: root deprecation Chris@0: Chris@14: I get precedence over any exit statements inside the deprecation error handler.