expand() public static méthode

Expand the template string using the supplied variables
public static expand ( string $template, array $variables ) : string
$template string URI template to expand
$variables array variables to use with the expansion
Résultat string
 /**
  * @dataProvider templateStrings
  * @test
  */
 public function uriTemplatesAreExpandedCorrectly($templateString, array $variables, $expectedString)
 {
     $expandedTemplate = UriTemplate::expand($templateString, $variables);
     $this->assertEquals($expectedString, $expandedTemplate);
 }