/** * @test */ public function routePartValueIsNullAfterUnsuccessfulResolve() { $this->dynamicRoutPart->setName('foo'); $routeValues = array('foo' => 'bar'); $this->assertTrue($this->dynamicRoutPart->resolve($routeValues)); $routeValues = array(); $this->assertFalse($this->dynamicRoutPart->resolve($routeValues)); $this->assertNull($this->dynamicRoutPart->getValue(), 'Dynamic Route Part value should be NULL when call to resolve() was not successful.'); }