/** * @dataProvider dataProviderGetApiRequestUrl */ public function testGetApiRequestUrl($expectedResult, $apiKey, $sourceText, $targetLanguage, $format = null, $sourceLanguage = null) { $this->clientStub->setApiKey($apiKey); $this->clientStub->setFormat($format); $this->clientStub->setSourceLanguage($sourceLanguage); $this->clientStub->setSourceText($sourceText); $this->clientStub->setTargetLanguage($targetLanguage); $this->assertEquals(Translate::API_URL . $expectedResult, $this->clientStub->getApiRequestUrl()); }