9 use \Magento\Framework\App\ErrorHandler;
30 public function testHandler($errorNo, $errorStr, $errorFile, $expectedResult)
32 $this->assertEquals($expectedResult, $this->object->handler($errorNo, $errorStr, $errorFile, 11));
41 [0,
'DateTimeZone::__construct', 0,
false],
55 $errorStr =
'test_string';
56 $errorFile =
'test_file';
57 $errorLine =
'test_error_line';
59 $exceptedExceptionMessage = sprintf(
'%s: %s in %s on line %s', $errorPhrase, $errorStr, $errorFile, $errorLine);
60 $this->expectException(
'Exception');
61 $this->expectExceptionMessage($exceptedExceptionMessage);
63 $this->
object->handler($errorNo, $errorStr, $errorFile, $errorLine);
73 [E_WARNING,
'Warning'],
74 [E_PARSE,
'Parse Error'],
76 [E_CORE_ERROR,
'Core Error'],
77 [E_CORE_WARNING,
'Core Warning'],
78 [E_COMPILE_ERROR,
'Compile Error'],
79 [E_COMPILE_WARNING,
'Compile Warning'],
80 [E_USER_ERROR,
'User Error'],
81 [E_USER_WARNING,
'User Warning'],
82 [E_USER_NOTICE,
'User Notice'],
83 [E_STRICT,
'Strict Notice'],
84 [E_RECOVERABLE_ERROR,
'Recoverable Error'],
85 [E_DEPRECATED,
'Deprecated Functionality'],
86 [E_USER_DEPRECATED,
'User Deprecated Functionality'],
87 [
'42',
'Unknown error (42)']
testHandlerException($errorNo, $errorPhrase)
testHandler($errorNo, $errorStr, $errorFile, $expectedResult)
handlerProviderException()