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()); }
public function testPagePath() { $app = new WebApplication(__DIR__ . "/app", "/"); $loops = $app->getLoops(); $page = new Testpage([], $loops); $this->assertSame("testpage", $page->getPagePath()); }