/** * 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); }
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); }