public function testAdviceIsCalledAfterInvocation()
{
$sequence = [];
$advice = $this->getAdvice($sequence);
$invocation = $this->getInvocation($sequence);
$interceptor = new AfterInterceptor($advice);
$result = $interceptor->invoke($invocation);
$this->assertEquals('invocation', $result, "Advice should not affect the return value of invocation");
$this->assertEquals(array('invocation', 'advice'), $sequence, "After advice should be invoked after invocation");
}