Пример #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());
 }