resolve() final public method

If a corresponding element is found in $routeValues, this element is removed from the array.
final public resolve ( array &$routeValues ) : boolean
$routeValues array An array with key/value pairs to be resolved by Dynamic Route Parts.
return boolean TRUE if current Route Part could be resolved, otherwise FALSE
 /**
  * @test
  */
 public function routePartValueIsNullAfterUnsuccessfulResolve()
 {
     $this->dynamicRoutPart->setName('foo');
     $routeValues = ['foo' => 'bar'];
     $this->assertTrue($this->dynamicRoutPart->resolve($routeValues));
     $routeValues = [];
     $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.');
 }