public function testTriggerWithClass()
{
$e = new Manager();
$e->attach('pre', array(new Foo(), 'bar'), 1);
$e->attach('pre', 'PopTest\\Event\\Foo->bar', 1);
$e->attach('pre', 'PopTest\\Event\\Foo', 1);
$e->attach('pre', 'new PopTest\\Event\\Foo', 1);
$e->attach('pre', function ($result) {
return 'Hello, ' . $result->value;
}, 1);
$e->trigger('pre', array('arg' => 'World'));
$results = $e->getResults('pre');
$this->assertEquals('Hello, World', $results[1]);
}