Happyr\LinkedIn\Http\UrlGeneratorTest::testGetUrlWithParams PHP Method

testGetUrlWithParams() public method

    public function testGetUrlWithParams()
    {
        $gen = new UrlGenerator();
        $expected = 'https://api.linkedin.com/endpoint?bar=baz&format=json';
        $this->assertEquals($expected, $gen->getUrl('api', 'endpoint?bar=baz', ['format' => 'json']));
        $expected = 'https://api.linkedin.com/endpoint?bar=baz&bar=baz';
        $this->assertEquals($expected, $gen->getUrl('api', 'endpoint?bar=baz', ['bar' => 'baz']));
    }