Exemplo n.º 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);
 }
Exemplo n.º 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);
 }