public function testAdviceIsCalledForInvocation()
{
$child = $this->getMock(self::FIRST_CLASS_NAME, array('none'));
$value = 'test';
$advice = new BeforeInterceptor(function () use(&$value) {
$value = 'ok';
});
$invocation = new self::$invocationClass(self::FIRST_CLASS_NAME, 'staticSelfPublic', array($advice));
$result = $invocation($child, []);
$this->assertEquals('ok', $value);
$this->assertEquals(T_PUBLIC, $result);
}