예제 #1
0
 /**
  * on Error
  *
  * @param integer $code    error code
  * @param string  $message error message
  * @param string  $file    error file
  * @param string  $line    line of error
  */
 public function onError($code, $message, $file, $line)
 {
     $exception = $this->converter->convert($code, $message, $file, $line, debug_backtrace());
     $this->errbit->notify($exception);
 }
예제 #2
0
 public function testUserWarning()
 {
     $notice = $this->object->convert(E_USER_WARNING, "TestWarning", "test.php", 8, "");
     $expected = new Warning("TestWarning", 8, "test.php", "");
     $this->assertEquals($notice, $expected);
 }