diff options
author | Andrey Andreev <narf@devilix.net> | 2022-01-05 16:16:53 +0100 |
---|---|---|
committer | Andrey Andreev <narf@devilix.net> | 2022-01-05 16:16:53 +0100 |
commit | 1d0315b6b3d7003bfb348ccaf7ee30d2533635de (patch) | |
tree | c2957406d056e1ee17b6073b06c1732cd1a8c646 /tests/codeigniter/core/Security_test.php | |
parent | 39da78b2588a60a2f43fb8f77448ab9604550978 (diff) |
Bye Travis, Hello GH Actions
Diffstat (limited to 'tests/codeigniter/core/Security_test.php')
-rw-r--r-- | tests/codeigniter/core/Security_test.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/codeigniter/core/Security_test.php b/tests/codeigniter/core/Security_test.php index 5f94e1501..c650315ce 100644 --- a/tests/codeigniter/core/Security_test.php +++ b/tests/codeigniter/core/Security_test.php @@ -252,7 +252,10 @@ class Security_test extends CI_TestCase { // Perform hash $this->security->xss_hash(); - $this->assertMatchesRegularExpression('#^[0-9a-f]{32}$#iS', $this->security->xss_hash); + $assertRegExp = class_exists('PHPUnit_Runner_Version') + ? 'assertRegExp' + : 'assertMatchesRegularExpression'; + $this->$assertRegExp('#^[0-9a-f]{32}$#iS', $this->security->xss_hash); } // -------------------------------------------------------------------- |