예제 #1
0
파일: UriTest.php 프로젝트: nikkialgar/grav
 public function testReferrer()
 {
     $this->uri->initializeWithURL('http://localhost/foo/page:test')->init();
     $this->assertSame('/foo', $this->uri->referrer());
     $this->uri->initializeWithURL('http://localhost/foo/bar/page:test')->init();
     $this->assertSame('/foo/bar', $this->uri->referrer());
 }