public function testGetLastSegment() { $_SERVER['REQUEST_URI'] = '/foo/bar/baz'; $this->assertEquals('baz', $this->urlModel->getSegment(-1)); }
public function testGetLastSegment() { $_SERVER['REQUEST_URI'] = '/foo/bar/baz'; $this->assertEquals('baz', $this->urlModel->getSegment(-1)); }