Exemplo n.º 1
0
 public function setUp()
 {
     $params = ['apiKey' => SANDBOX_API_KEY, 'sandbox' => true];
     if (defined('SANDBOX_URL')) {
         $params['sandboxUrl'] = SANDBOX_URL;
     }
     $log = false;
     // Uncomment to enable request/response debugging
     // $log = null;
     $this->client = Client::create($params, $log);
 }
Exemplo n.º 2
0
 public function testFactoryCreateWithLogger()
 {
     $logger = $this->getMockBuilder('Psr\\Log\\LoggerInterface')->getMock();
     $client = Client::create(['sandbox' => true, 'apiKey' => 'xxx'], $logger);
     $this->assertInstanceOf('Isign\\Client', $client);
 }