summaryrefslogtreecommitdiffstats
path: root/tests/codeigniter/core/Security_test.php
diff options
context:
space:
mode:
authorAndrey Andreev <narf@devilix.net>2017-12-20 18:57:39 +0100
committerGitHub <noreply@github.com>2017-12-20 18:57:39 +0100
commitfbae310a44e5d6fb3f962d148c80a60cd38c884a (patch)
tree63ca4ac93f9fd6f3afe5a91ef25701391ec9e593 /tests/codeigniter/core/Security_test.php
parent3ecfcaa94bbae55fec8c2c9bbf8524c49816342f (diff)
parentdfa52f3ed31696c58fdc85273f4408559233b19e (diff)
Merge pull request #5354 from carusogabriel/refactoring-tests
Refactoring tests
Diffstat (limited to 'tests/codeigniter/core/Security_test.php')
-rw-r--r--tests/codeigniter/core/Security_test.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/codeigniter/core/Security_test.php b/tests/codeigniter/core/Security_test.php
index 4dd31f4b1..22c97df8b 100644
--- a/tests/codeigniter/core/Security_test.php
+++ b/tests/codeigniter/core/Security_test.php
@@ -253,7 +253,7 @@ class Security_test extends CI_TestCase {
// Perform hash
$this->security->xss_hash();
- $this->assertTrue(preg_match('#^[0-9a-f]{32}$#iS', $this->security->xss_hash) === 1);
+ $this->assertRegExp('#^[0-9a-f]{32}$#iS', $this->security->xss_hash);
}
// --------------------------------------------------------------------