public function testArrayCallback() { $obj = new \EventableObject(); $this->container->on('my_event', array($obj, 'increment')); $this->container->trigger('my_event', 2); $this->assertEquals($obj->num, 3); }