/** * @test */ public function getWsUrlShouldGetTheWsUrlFromTheEnvironmentAppendingEmailAndTokenAsGetParams() { $credentials = new Credentials('*****@*****.**', 'testing', $this->environment); $this->assertEquals('https://ws.test.com/test?page=1&email=contato%40phpsc.com.br&token=testing', $credentials->getWsUrl('/test', ['page' => '1'])); }
/** * @param string $resource * @param SimpleXMLElement $request * * @return SimpleXMLElement */ protected function post($resource, SimpleXMLElement $request) { return $this->client->post($this->credentials->getWsUrl($resource), $request); }