tests/ErrorHandlerTest.php
/**
     * Check if custom exception handler is activated.
     */
Check if custom exception handler is activated.
Check if custom exception handler is activated .
public function testIfCustomErrorHandlerIsActivated()
    {
        $lastHandler = set_error_handler(null);
        $className = get_class($lastHandler[0]);
        $this->assertContains('ErrorHandler', $className);
        $this->assertObjectHasAttribute('stack', $lastHandler[0]);
    }
public function testIfCustomErrorHandlerIsActivated ( ) { $ lastHandler = set_error_handler ( null ) ; $ className = get_class ( $ lastHandler [ 0 ] ) ; $ this -> assertContains ( 'ErrorHandler' , $ className ) ; $ this -> assertObjectHasAttribute ( 'stack' , $ lastHandler [ 0 ] ) ; }
Check if custom exception handler is activated.
Check if custom exception handler is activated .