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); }
public function testFactoryCreateWithLogger() { $logger = $this->getMockBuilder('Psr\\Log\\LoggerInterface')->getMock(); $client = Client::create(['sandbox' => true, 'apiKey' => 'xxx'], $logger); $this->assertInstanceOf('Isign\\Client', $client); }