protected function setUp()
 {
     $this->client = $this->getMockBuilder(Client::class)->disableOriginalConstructor()->getMock();
     ActiveRecordContext::setClient($this->client);
     $this->transaction = new Transaction();
 }
 protected function setUp()
 {
     $this->client = $this->getMockBuilder(Client::class)->disableOriginalConstructor()->getMock();
     ActiveRecordContext::setClient($this->client);
     $this->paymentMethod = new PaymentMethod();
 }
Exemplo n.º 3
0
 /**
  * Enables active record methods on resource objects.
  */
 public function enableActiveRecord()
 {
     ActiveRecordContext::setClient($this);
 }
 /**
  * @expectedException \Coinbase\Wallet\Exception\LogicException
  */
 public function testGetClientException()
 {
     ActiveRecordContext::setClient(null);
     ActiveRecordContext::getClient();
 }