Skip to content

Commit 8ce0e15

Browse files
committed
Use gmdate() instead of date() to avoid timezone warnings
1 parent 1a2b17d commit 8ce0e15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Omnipay/Tests/TestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public function getValidCard()
112112
'lastName' => 'User',
113113
'number' => '4111111111111111',
114114
'expiryMonth' => rand(1, 12),
115-
'expiryYear' => date('Y') + rand(1, 5),
115+
'expiryYear' => gmdate('Y') + rand(1, 5),
116116
'cvv' => rand(100, 999),
117117
'billingAddress1' => '123 Billing St',
118118
'billingAddress2' => 'Billsville',

0 commit comments

Comments
 (0)