Phprest\Service\Hateoas\HateoasTest::testUrlGeneratorRelativeWithIdAndParameters PHP Method

testUrlGeneratorRelativeWithIdAndParameters() public method

    public function testUrlGeneratorRelativeWithIdAndParameters()
    {
        $url = call_user_func_array($this->hateoasConfig->urlGenerator, ['/foo', ['id' => 5, 'name' => 'Adam'], false]);
        $this->assertEquals('/foo/5?name=Adam', $url);
    }