/** * Empty dummy "Around" advice * * @param \AppserverIo\Psr\MetaobjectProtocol\Aop\MethodInvocationInterface $methodInvocation Initially invoked method * * @return null * * @Around("pointcut(iHaveAnAroundAdvice)") */ public function basicAroundAdvice(MethodInvocationInterface $methodInvocation) { $methodInvocation->proceed(); PointcutReferencingTestClass::$staticStorage = clone $methodInvocation; }
/** * Tests if multiple pointcuts can be referenced by one advice * * @return void */ public function testMultiplePointcutsForOneBeforeAdvice() { $this->assertEquals(2, $this->testClass->iHaveASimpleBeforeAdvice1(1)); $this->assertEquals(2, $this->testClass->iHaveASimpleBeforeAdvice2(1)); }