/** * "AfterReturning" advice which should never be reached * * @param \AppserverIo\Psr\MetaobjectProtocol\Aop\MethodInvocationInterface $methodInvocation Initially invoked method * * @return null * * @AfterReturning */ public function neverReachedAfterReturningAdvice(MethodInvocationInterface $methodInvocation) { MethodInvocationTestClass::$staticStorage = 'I have been reached'; }
/** * Tests if we can weave an Around advice * * @return null */ public function testAround() { $this->testClass->iHaveAnAroundAdvice(); }