adapter() public method

Access the adapter
public adapter ( ) : AbstractAdapter
return Pop\Payment\Adapter\AbstractAdapter
Example #1
0
 public function testConstructor()
 {
     $p = new Payment(new Authorize('API_LOGIN_ID', 'TRANS_KEY', Payment::TEST));
     $p->adapter()->set('123 Main St.', 'address');
     $p->adapter()->set(array('address' => '123 Main St.', 'city' => 'New Orleans'));
     $this->assertInstanceOf('Pop\\Payment\\Payment', $p);
     $this->assertInstanceOf('Pop\\Payment\\Adapter\\Authorize', $p->adapter());
 }