trigger_error('unsilenced foo deprecation', E_USER_DEPRECATED
);
trigger_error('unsilenced foo deprecation', E_USER_DEPRECATED
);
} public function testNonLegacyBar() { @
trigger_error('silenced bar deprecation', E_USER_DEPRECATED
);
trigger_error('unsilenced bar deprecation', E_USER_DEPRECATED
);
}}$foo =
new FooTestCase();
$foo->
testLegacyFoo();
$foo->
testNonLegacyBar();
register_shutdown_function(function D
) { @
trigger_error('root deprecation during shutdown', E_USER_DEPRECATED
);
});
?>
--EXPECTF--
Unsilenced deprecation notices (3)
2x: unsilenced foo deprecation
2x in FooTestCase::testLegacyFoo
1x: unsilenced bar deprecation
1x in FooTestCase::testNonLegacyBar
Legacy deprecation notices (1)
Other deprecation notices (2)
1x: root deprecation
1x: silenced bar deprecation
1x in FooTestCase::testNonLegacyBar
Shutdown-time deprecations:
Other deprecation notices (1)
1x: root deprecation during shutdown