/**
* @depends testCreate
*
*/
public function testSetAdvice(Advisor $advisor)
{
$advisor->setAdvice(function ($target, $args) {
return $target($args) . 'bar';
});
$advice = $advisor->getAdvice();
$this->assertEquals('foobar', $advice(function ($arg) {
return $arg;
}, 'foo'));
}