Skip to content

Commit

Permalink
[rector] Rector fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user authored and pierredup committed Dec 7, 2023
1 parent 4534c42 commit a363025
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function testShouldCorrectlyConvertPaymentToArray()
$this->assertNotEmpty($result);

$this->assertArrayHasKey('amount', $result);
$this->assertSame(1.23, $result['amount']);
$this->assertEqualsWithDelta(1.23, $result['amount'], PHP_FLOAT_EPSILON);

$this->assertArrayHasKey('invoice_num', $result);
$this->assertSame('theNumber', $result['invoice_num']);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function testShouldCorrectlyConvertOrderToDetailsAndSetItBack()
$this->assertSame('theNumber', $details['INVNUM']);

$this->assertArrayHasKey('PAYMENTREQUEST_0_AMT', $details);
$this->assertSame(1.23, $details['PAYMENTREQUEST_0_AMT']);
$this->assertEqualsWithDelta(1.23, $details['PAYMENTREQUEST_0_AMT'], PHP_FLOAT_EPSILON);

$this->assertArrayHasKey('PAYMENTREQUEST_0_CURRENCYCODE', $details);
$this->assertSame('USD', $details['PAYMENTREQUEST_0_CURRENCYCODE']);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function testShouldCorrectlyConvertOrderToDetailsAndSetItBack()
$this->assertNotEmpty($details);

$this->assertArrayHasKey('AMT', $details);
$this->assertSame(1.23, $details['AMT']);
$this->assertEqualsWithDelta(1.23, $details['AMT'], PHP_FLOAT_EPSILON);

$this->assertArrayHasKey('CURRENCY', $details);
$this->assertSame('USD', $details['CURRENCY']);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function testShouldCorrectlyConvertOrderToDetailsAndSetItBack()
$this->assertSame('theNumber', $details['INVNUM']);

$this->assertArrayHasKey('AMT', $details);
$this->assertSame(123.0, $details['AMT']);
$this->assertEqualsWithDelta(123.0, $details['AMT'], PHP_FLOAT_EPSILON);

$this->assertArrayHasKey('CURRENCYCODE', $details);
$this->assertSame('USD', $details['CURRENCYCODE']);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public function testShouldThrowIfConfigPathOptionsNotEqualPaypalPath()
$this->expectException(\Payum\Core\Exception\InvalidArgumentException::class);

if (method_exists($this, 'expectExceptionMessageRegExp')) {
$this->expectExceptionMessageRegExp('/Given \"config_path\" is invalid. \w+/');
$this->expectExceptionMessageMatches('/Given \"config_path\" is invalid. \w+/');
} else {
$this->expectExceptionMessageMatches('/Given \"config_path\" is invalid. \w+/');
}
Expand Down

0 comments on commit a363025

Please sign in to comment.