Skip to content

Commit

Permalink
Encryption_test should be considered a skipped test in older versions…
Browse files Browse the repository at this point in the history
… of PHP, which run on ubuntu-latest on GHA

... or maybe until a better approach is found
  • Loading branch information
gxgpet committed Jan 13, 2024
1 parent 73d3d64 commit 7060216
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/codeigniter/libraries/Encryption_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ class Encryption_test extends CI_TestCase {
public function set_up()
{
$this->encryption = new Mock_Libraries_Encryption();

if (version_compare(PHP_VERSION, '7.1', '<'))
{
$this->markTestSkipped('Ubuntu-latest OpenSSL is not working correct in some older PHP versions.');
}
}

// --------------------------------------------------------------------
Expand Down

0 comments on commit 7060216

Please sign in to comment.