Fuel\Event\EventTest::testArrayCallback PHP Method

testArrayCallback() public method

public testArrayCallback ( )
    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);
    }