Example #1
0
 public function testCustomClientConfiguration()
 {
     $client = new Client($this->clientStub, $this->responseMapperStub, $this->validatorStub, ['sandbox' => true, 'apiKey' => 'l33t', 'url' => 'https://custom-api.isign.io', 'sandboxUrl' => 'https://custom-developers.isign.io']);
     $this->assertSame(true, $client->isSandbox());
     $this->assertSame('l33t', $client->getApiKey());
     $this->assertSame('https://custom-api.isign.io', $client->getUrl());
     $this->assertSame('https://custom-developers.isign.io', $client->getSandboxUrl());
 }