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

testRenderedOutput() public method

public testRenderedOutput ( )
    public function testRenderedOutput()
    {
        ob_start();
        echo 'Some Output';
        $subject = new ErrorHandlerTest();
        ErrorHandler::apply(array($subject, 'throwException'), array(), function ($details) {
        });
        $subject->throwException();
        $this->assertEmpty(ob_get_length());
    }