Skip to content

Commit 7060216

Browse files
committed
Encryption_test should be considered a skipped test in older versions of PHP, which run on ubuntu-latest on GHA
... or maybe until a better approach is found
1 parent 73d3d64 commit 7060216

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/codeigniter/libraries/Encryption_test.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ class Encryption_test extends CI_TestCase {
55
public function set_up()
66
{
77
$this->encryption = new Mock_Libraries_Encryption();
8+
9+
if (version_compare(PHP_VERSION, '7.1', '<'))
10+
{
11+
$this->markTestSkipped('Ubuntu-latest OpenSSL is not working correct in some older PHP versions.');
12+
}
813
}
914

1015
// --------------------------------------------------------------------

0 commit comments

Comments
 (0)