コード例 #1
0
 /**
  * @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']));
 }
コード例 #2
0
ファイル: Service.php プロジェクト: leonardorifeli/pagseguro
 /**
  * @param string $resource
  * @param SimpleXMLElement $request
  *
  * @return SimpleXMLElement
  */
 protected function post($resource, SimpleXMLElement $request)
 {
     return $this->client->post($this->credentials->getWsUrl($resource), $request);
 }