public function registerAssertionHandler($convertAssertionErrorsToExceptions = true, $throwAssertionExceptions = false)
    {
        $this->convertAssertionErrorsToExceptions = $convertAssertionErrorsToExceptions;
        $this->throwAssertionExceptions = $throwAssertionExceptions;
        
        if ($throwAssertionExceptions && !$convertAssertionErrorsToExceptions) {
            throw $this->newException('Cannot throw assertion exceptions as assertion errors are not being converted to exceptions!');
        }
        
        return assert_options(ASSERT_CALLBACK, array($this, 'assertionHandler'));
    }
public function registerAssertionHandler($convertAssertionErrorsToExceptions = true, $throwAssertionExceptions = false)
    {
        $this->convertAssertionErrorsToExceptions = $convertAssertionErrorsToExceptions;
        $this->throwAssertionExceptions = $throwAssertionExceptions;
        
        if ($throwAssertionExceptions && !$convertAssertionErrorsToExceptions) {
            throw $this->newException('Cannot throw assertion exceptions as assertion errors are not being converted to exceptions!');
        }
        
        return assert_options(ASSERT_CALLBACK, array($this, 'assertionHandler'));
    }
public function registerAssertionHandler ( $ convertAssertionErrorsToExceptions = true , $ throwAssertionExceptions = false ) { $ this -> convertAssertionErrorsToExceptions = $ convertAssertionErrorsToExceptions ; $ this -> throwAssertionExceptions = $ throwAssertionExceptions ; if ( $ throwAssertionExceptions && ! $ convertAssertionErrorsToExceptions ) { throw $ this -> newException ( 'Cannot throw assertion exceptions as assertion errors are not being converted to exceptions!' ) ; } return assert_options ( ASSERT_CALLBACK , array ( $ this , 'assertionHandler' ) ) ; }
Register FirePHP driver as your assert callback

@param boolean $convertAssertionErrorsToExceptions
@param boolean $throwAssertionExceptions
@return mixed Returns the original setting or FALSE on errors
Register FirePHP driver as your assert callback