private function parse($path) { $parts = explode('?', $path); $this->path = Context::normalizePath($parts[0]); if (count($parts) == 1) { return; } $this->setQuery($parts[1]); }
/** * @covers Context::normalizePath */ public function testNormalizePathRelativePath() { $actual = $this->ctx->normalizePath("vineyard/id=23"); $excepted = "vineyard/id=23"; $this->assertEquals($excepted, $actual); }