Skip to content

Commit

Permalink
Comment out test code that triggers "Deprecated: Implicit conversion …
Browse files Browse the repository at this point in the history
…from non-compatible float 0.9 to int" with PHP 8.1
  • Loading branch information
sebastianbergmann committed Jun 4, 2021
1 parent 672768e commit 40e4190
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/end-to-end/regression/GitHub/1337.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ PHPUnit\TextUI\Command::main();
--EXPECTF--
PHPUnit %s by Sebastian Bergmann and contributors.

.. 2 / 2 (100%)
. 1 / 1 (100%)

Time: %s, Memory: %s

OK (2 tests, 2 assertions)
OK (1 test, 1 assertion)
3 changes: 2 additions & 1 deletion tests/end-to-end/regression/GitHub/1337/Issue1337Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ public function dataProvider()
{
return [
'c:\\' => [true],
0.9 => [true],
// The following is commented out because it no longer works in PHP >= 8.1
//0.9 => [true],
];
}
}

0 comments on commit 40e4190

Please sign in to comment.