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()); }