Payum\Paypal\ProCheckout\Nvp\Tests\ApiTest::couldBeConstructedWithOptionsAndHttpClient PHP Method

couldBeConstructedWithOptionsAndHttpClient() public method

    public function couldBeConstructedWithOptionsAndHttpClient()
    {
        $client = $this->createHttpClientMock();
        $factory = $this->createHttpMessageFactory();
        $api = new Api(array('username' => 'aUsername', 'password' => 'aPassword', 'partner' => 'aPartner', 'vendor' => 'aVendor', 'tender' => 'aTender'), $client, $factory);
        $this->assertAttributeSame($client, 'client', $api);
        $this->assertAttributeSame($factory, 'messageFactory', $api);
    }