Пример #1
0
 public function testErrorSeverityDescription()
 {
     $this->assertSame('Deprecated', ErrorHandler::getErrorDescription(\E_DEPRECATED));
     $this->assertSame('User Deprecated', ErrorHandler::getErrorDescription(\E_USER_DEPRECATED));
     $this->assertSame('Notice', ErrorHandler::getErrorDescription(\E_NOTICE));
     $this->assertSame('User Notice', ErrorHandler::getErrorDescription(\E_USER_NOTICE));
     $this->assertSame('Runtime Notice', ErrorHandler::getErrorDescription(\E_STRICT));
     $this->assertSame('Warning', ErrorHandler::getErrorDescription(\E_WARNING));
     $this->assertSame('User Warning', ErrorHandler::getErrorDescription(\E_USER_WARNING));
     $this->assertSame('Compile Warning', ErrorHandler::getErrorDescription(\E_COMPILE_WARNING));
     $this->assertSame('Core Warning', ErrorHandler::getErrorDescription(\E_CORE_WARNING));
     $this->assertSame('User Error', ErrorHandler::getErrorDescription(\E_USER_ERROR));
     $this->assertSame('Catchable Fatal Error', ErrorHandler::getErrorDescription(\E_RECOVERABLE_ERROR));
     $this->assertSame('Compile Error', ErrorHandler::getErrorDescription(\E_COMPILE_ERROR));
     $this->assertSame('Parse Error', ErrorHandler::getErrorDescription(\E_PARSE));
     $this->assertSame('Error', ErrorHandler::getErrorDescription(\E_ERROR));
     $this->assertSame('Core Error', ErrorHandler::getErrorDescription(\E_CORE_ERROR));
     $this->assertSame('Exception', ErrorHandler::getErrorDescription('derp'));
 }