public function testUnregisterEventByName()
{
$expected = array(2, 3);
$this->container->on('event', function () {
return 1;
});
$this->container->on('all', function () {
return 2;
});
$this->container->off('event');
$this->container->on('event', function () {
return 3;
});
$result = $this->container->trigger('event');
$this->assertEquals($expected, $result);
}