Exemplo n.º 1
0
 public function testLoopsGetPagePathDelegate()
 {
     $app = new WebApplication(__DIR__ . "/app", "/", "GET", [], [], [], [], [], FALSE);
     $loops = $app->getLoops();
     $page = new Testpage();
     $element = new ElementMock1b();
     $page->offsetSet("aaa", $element);
     $this->assertSame("testpage/aaa", $element->offsetGet("acc")->getPagePath());
 }
Exemplo n.º 2
0
 public function testPagePath()
 {
     $app = new WebApplication(__DIR__ . "/app", "/");
     $loops = $app->getLoops();
     $page = new Testpage([], $loops);
     $this->assertSame("testpage", $page->getPagePath());
 }