Beispiel #1
0
 public function testGetMapsMap()
 {
     $sFixturePath = VSC_FIXTURE_PATH . 'config' . DIRECTORY_SEPARATOR;
     $o = new RwDispatcher();
     $o->loadSiteMap($sFixturePath . 'map.php');
     $this->assertInstanceOf(SiteMapA::class, $o->getSiteMap());
 }
Beispiel #2
0
 public function testLoadSiteMap()
 {
     $Exception = new ExceptionError('test', 123);
     $o = new ErrorProcessor($Exception);
     $oMap = new ClassMap(ErrorProcessor::class, '.*');
     $o->setMap($oMap);
     $sFixturePath = VSC_FIXTURE_PATH . 'config' . DIRECTORY_SEPARATOR;
     $o = new RwDispatcher();
     $o->loadSiteMap($sFixturePath . 'map.php');
     $this->assertInstanceOf(SiteMapA::class, $o->getSiteMap());
 }