lithium\tests\cases\core\ErrorHandlerTest::testApply PHP Method

testApply() public method

public testApply ( )
    public function testApply()
    {
        $subject = new ErrorHandlerTest();
        ErrorHandler::apply(array($subject, 'throwException'), array(), function ($details) {
            return $details['exception']->getMessage();
        });
        $this->assertEqual('foo', $subject->throwException());
    }