public function setUp()
 {
     $this->client = new Client(self::MERCHANT_ID, self::MERCHANT_KEY);
     $this->client->setEnviroment(Client::ENVIRONMENT_TESTING);
 }
Example #2
-1
 public function testMerchantKey()
 {
     $this->client->setMerchantKey('0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33');
     $this->assertEquals('0beec7b5ea3f0fdbc95d0dd47f3c5bc275da8a33', $this->client->getMerchantKey());
     $this->client->setMerchantKey('62cdb7020ff920e5aa642c3d4066950dd1f01f4d');
     $this->assertEquals('62cdb7020ff920e5aa642c3d4066950dd1f01f4d', $this->client->getMerchantKey());
     try {
         $this->client->setMerchantKey('foobar');
         $this->fail('Invalid merchantKey could be set');
     } catch (Exception $exception) {
     }
 }