/**
  * @test
  */
 public function targetSetByConstructorGetsReturnedAsIs()
 {
     $route = new Route('get', '/info', 'test');
     $this->assertSame('test', $route->getTarget());
 }
 /**
  * Returns the identifier string for given route.
  *
  * @param Route $route
  * @return string
  */
 protected function getRouteIdentifier(Route $route) : string
 {
     return empty($route->getName()) ? $route->getTarget() : $route->getName();
 }