/** * @test */ public function matchResetsValueBeforeProcessingTheRoutePath() { $routePart = new Mvc\Routing\StaticRoutePart(); $routePart->setName('foo'); $routeValues = []; $routePart->resolve($routeValues); $this->assertSame('foo', $routePart->getValue()); $routePath = 'foo'; $routePart->match($routePath); $this->assertNull($routePart->getValue(), 'Static Route Part must reset their value to NULL.'); }