PopTest\Payment\PaymentTest::testConstructor PHP Метод

testConstructor() публичный Метод

public testConstructor ( )
    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());
    }