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