public function testUrlGeneratorAbsolute() { $url = call_user_func_array($this->hateoasConfig->urlGenerator, ['/foo', ['id' => 5, 'name' => 'Adam'], true]); $this->assertEquals('http://:/foo/5?name=Adam', $url); # no host and port in CLI }