/** * Test building a collection URL from a passed screen_name and collection ID * * @since 1.0.0 * * @covers ::collection * @small * * @dataProvider collectionDataProvider * * @param string $screen_name screen_name to be used to construct a URL * @param string $collection_id collection identifier * @param string $url expected result * @param string $message error message to display on fail * * @return void */ public function testCollection($screen_name, $collection_id, $url, $message = '') { $this->assertEquals($url, \Twitter\Helpers\TwitterURL::collection($screen_name, $collection_id), $message); }