Skip to content

Commit

Permalink
Merge pull request bcit-ci#6261 from gxgpet/develop_fixactions
Browse files Browse the repository at this point in the history
Fixes GitHub actions not starting anymore
  • Loading branch information
gxgpet authored Jan 14, 2024
2 parents 63d0375 + 7d2fbce commit ae7b30f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ permissions:

jobs:
tests:
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
if: "!contains(github.event.head_commit.message, '[ci skip]')"
env:
PHP_INI_VALUES: assert.exception=1, zend.assertions=1
Expand Down
9 changes: 7 additions & 2 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 Expand Up @@ -207,8 +212,8 @@ public function test_initialize_encrypt_decrypt()

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

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

Expand Down

0 comments on commit ae7b30f

Please sign in to comment.