/** * @covers ::getPath */ public function testGetPath() { $_SERVER['REQUEST_URI'] = '/controller/action.json/'; $result = $this->sut->getPath(); // /controller/action.json -> /controller/action $this->assertEquals('controller/action', $result); }