Skip to content

Commit ae7b30f

Browse files
authored
Merge pull request #6261 from gxgpet/develop_fixactions
Fixes GitHub actions not starting anymore
2 parents 63d0375 + 7d2fbce commit ae7b30f

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/test-phpunit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ permissions:
77

88
jobs:
99
tests:
10-
runs-on: ubuntu-18.04
10+
runs-on: ubuntu-22.04
1111
if: "!contains(github.event.head_commit.message, '[ci skip]')"
1212
env:
1313
PHP_INI_VALUES: assert.exception=1, zend.assertions=1

tests/codeigniter/libraries/Encryption_test.php

Lines changed: 7 additions & 2 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
// --------------------------------------------------------------------
@@ -207,8 +212,8 @@ public function test_initialize_encrypt_decrypt()
207212

208213
$this->assertEquals($message, $this->encryption->decrypt($this->encryption->encrypt($message)));
209214

210-
// Try DES in ECB mode, just for the sake of changing stuff
211-
$this->encryption->initialize(array('cipher' => 'des', 'mode' => 'ecb', 'key' => substr($key, 0, 8)));
215+
// Try DES3 in OFB mode, just for the sake of changing stuff
216+
$this->encryption->initialize(array('cipher' => 'tripledes', 'mode' => 'ofb', 'key' => substr($key, 0, 8)));
212217
$this->assertEquals($message, $this->encryption->decrypt($this->encryption->encrypt($message)));
213218
}
214219

0 commit comments

Comments
 (0)