Skip to content

Commit

Permalink
Remove checks that are no longer needed
Browse files Browse the repository at this point in the history
  • Loading branch information
oschwald committed Nov 15, 2024
1 parent 97a88f5 commit 0cb1049
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
3 changes: 0 additions & 3 deletions tests/MaxMind/Test/MinFraud/UtilTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -292,9 +292,6 @@ public function testMaybeHashEmail(): void

if (\function_exists('idn_to_ascii')
&& idn_to_ascii('bücher.com', \IDNA_NONTRANSITIONAL_TO_ASCII, \INTL_IDNA_VARIANT_UTS46) === 'xn--bcher-kva.com'
// This test fails on this combo and it is hard to tell what is going on
// without actual access to such a machine.
&& (\PHP_OS !== 'Darwin' || \PHP_MAJOR_VERSION !== 7)
) {
array_push(
$tests,
Expand Down
12 changes: 5 additions & 7 deletions tests/MaxMind/Test/MinFraudTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1035,13 +1035,11 @@ public static function goodTimes(): array
['2014-04-12T23:20:50Z'],
];

if (\PHP_VERSION_ID >= 70300) {
array_push(
$tests,
['2014-04-12T23:20:50.052+01:00'],
['2014-04-12T23:20:50.052Z']
);
}
array_push(
$tests,
['2014-04-12T23:20:50.052+01:00'],
['2014-04-12T23:20:50.052Z']
);

return $tests;
}
Expand Down

0 comments on commit 0cb1049

Please sign in to comment.