diff --git a/src/GatewayTestCase.php b/src/GatewayTestCase.php index 93de618..1a09ef6 100644 --- a/src/GatewayTestCase.php +++ b/src/GatewayTestCase.php @@ -41,7 +41,7 @@ public function testDefaultParametersHaveMatchingMethods() foreach ($settings as $key => $default) { $getter = 'get'.ucfirst($this->camelCase($key)); $setter = 'set'.ucfirst($this->camelCase($key)); - $value = uniqid(); + $value = uniqid('', true); $this->assertTrue(method_exists($this->gateway, $getter), "Gateway must implement $getter()"); $this->assertTrue(method_exists($this->gateway, $setter), "Gateway must implement $setter()"); @@ -198,7 +198,7 @@ public function testAuthorizeParameters() // set property on gateway $getter = 'get'.ucfirst($this->camelCase($key)); $setter = 'set'.ucfirst($this->camelCase($key)); - $value = uniqid(); + $value = uniqid('', true); $this->gateway->$setter($value); // request should have matching property, with correct value @@ -218,7 +218,7 @@ public function testCompleteAuthorizeParameters() // set property on gateway $getter = 'get'.ucfirst($this->camelCase($key)); $setter = 'set'.ucfirst($this->camelCase($key)); - $value = uniqid(); + $value = uniqid('', true); $this->gateway->$setter($value); // request should have matching property, with correct value @@ -238,7 +238,7 @@ public function testCaptureParameters() // set property on gateway $getter = 'get'.ucfirst($this->camelCase($key)); $setter = 'set'.ucfirst($this->camelCase($key)); - $value = uniqid(); + $value = uniqid('', true); $this->gateway->$setter($value); // request should have matching property, with correct value @@ -258,7 +258,7 @@ public function testPurchaseParameters() // set property on gateway $getter = 'get'.ucfirst($this->camelCase($key)); $setter = 'set'.ucfirst($this->camelCase($key)); - $value = uniqid(); + $value = uniqid('', true); $this->gateway->$setter($value); // request should have matching property, with correct value @@ -278,7 +278,7 @@ public function testCompletePurchaseParameters() // set property on gateway $getter = 'get'.ucfirst($this->camelCase($key)); $setter = 'set'.ucfirst($this->camelCase($key)); - $value = uniqid(); + $value = uniqid('', true); $this->gateway->$setter($value); // request should have matching property, with correct value @@ -298,7 +298,7 @@ public function testRefundParameters() // set property on gateway $getter = 'get'.ucfirst($this->camelCase($key)); $setter = 'set'.ucfirst($this->camelCase($key)); - $value = uniqid(); + $value = uniqid('', true); $this->gateway->$setter($value); // request should have matching property, with correct value @@ -318,7 +318,7 @@ public function testVoidParameters() // set property on gateway $getter = 'get'.ucfirst($this->camelCase($key)); $setter = 'set'.ucfirst($this->camelCase($key)); - $value = uniqid(); + $value = uniqid('', true); $this->gateway->$setter($value); // request should have matching property, with correct value @@ -338,7 +338,7 @@ public function testCreateCardParameters() // set property on gateway $getter = 'get'.ucfirst($this->camelCase($key)); $setter = 'set'.ucfirst($this->camelCase($key)); - $value = uniqid(); + $value = uniqid('', true); $this->gateway->$setter($value); // request should have matching property, with correct value @@ -358,7 +358,7 @@ public function testDeleteCardParameters() // set property on gateway $getter = 'get'.ucfirst($this->camelCase($key)); $setter = 'set'.ucfirst($this->camelCase($key)); - $value = uniqid(); + $value = uniqid('', true); $this->gateway->$setter($value); // request should have matching property, with correct value @@ -378,7 +378,7 @@ public function testUpdateCardParameters() // set property on gateway $getter = 'get'.ucfirst($this->camelCase($key)); $setter = 'set'.ucfirst($this->camelCase($key)); - $value = uniqid(); + $value = uniqid('', true); $this->gateway->$setter($value); // request should have matching property, with correct value