callThatOriginatesFromSapphire(); } /** * @expectedException PHPUnit_Framework_Error_Notice */ function testMatchingModuleNotifcationVersionAffectsNotice() { Deprecation::notification_version('1.0.0'); Deprecation::notification_version('3.0.0', 'sapphire'); $this->callThatOriginatesFromSapphire(); } protected function callThatOriginatesFromSapphire() { $this->assertEquals(DeprecationTest_Deprecation::get_module(), 'sapphire'); Deprecation::notice('2.0', 'Deprecation test passed'); } function testMethodNameCalculation() { $this->assertEquals(DeprecationTest_Deprecation::get_method(), 'DeprecationTest->testMethodNameCalculation'); } }