示例#1
0
 public function __construct(\Exception $e)
 {
     $this->setException($e);
     $oErrorMap = new ErrorMap();
     $oErrorMap->setTemplatePath(VSC_RES_PATH . 'templates');
     $oErrorMap->setTemplate('error.tpl.php');
     $this->setMap($oErrorMap);
 }
示例#2
0
 public function testBasic__construct()
 {
     $o = new ErrorMap();
     $this->assertEquals('\\A.*\\Z', $o->getRegex());
     $this->assertEquals(ErrorProcessor::class, $o->getPath());
 }