/** * @dataProvider uriTestProvider */ function testRequestUriConstructedProperly($path, $params, $full_uri, $end_string) { $this->assertSame($end_string, Services_Twilio::getRequestUri($path, $params, $full_uri)); }
/** * @dataProvider uriTestProvider */ function testRequestUriConstructedProperly($path, $params, $full_uri, $expected) { $client = new Services_Twilio('sid', 'token'); $actual = $client->getRequestUri($path, $params, $full_uri); $this->assertSame($expected, $actual); }