-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
This assertion in GatewayTestCase::testDefaultParametersHaveMatchingMethods() will fail for the parameter currency
omnipay-tests/src/GatewayTestCase.php
Line 51 in 599d418
$this->assertSame($value, $this->gateway->$getter()); |
The reason is the strtoupper()
in AbstractGateway::getCurrency()
The message will look like this
1) Omnipay\Tests\Foo\GatewayTest::testDefaultParametersHaveMatchingMethods
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
-'5b73ed8edf6e5'
+'5B73ED8EDF6E5'
To reproduce this, simply create a gateway with the key currency
in his getDefaultParameters()
-Result.
public function getDefaultParameters()
{
return [
'currency' => 'EUR',
];
}
judgej
Metadata
Metadata
Assignees
Labels
No labels