public function testResolveUri($base, $rel, $expectedTarget)
{
$baseUri = new Uri($base);
$targetUri = UriResolver::resolve($baseUri, new Uri($rel));
$this->assertInstanceOf('Psr\\Http\\Message\\UriInterface', $targetUri);
$this->assertSame($expectedTarget, (string) $targetUri);
// This ensures there are no test cases that only work in the resolve() direction but not the
// opposite via relativize(). This can happen when both base and rel URI are relative-path
// references resulting in another relative-path URI.
$this->assertSame($expectedTarget, (string) UriResolver::resolve($baseUri, $targetUri));
}