示例#1
0
 public function testLoopsGetPagePathIndex()
 {
     $app = new WebApplication(__DIR__ . "/app", "/", "GET", [], [], [], [], [], FALSE);
     $loops = $app->getLoops();
     $page = new Index(["a"]);
     $element = new DefaultElement();
     $page->offsetSet("aaa", $element);
     $this->assertSame("a/deeper/aaa", $element->getPagePath());
 }
示例#2
0
 public function testIndexPagePage()
 {
     $app = new WebApplication(__DIR__ . "/app", "/");
     $loops = $app->getLoops();
     $page = new Index(["a"]);
     $this->assertSame("a/deeper/", $page->getPagePath());
 }