summaryrefslogtreecommitdiffstats
path: root/tests/codeigniter/core/Security_test.php
diff options
context:
space:
mode:
authorGabriel Caruso <carusogabriel34@gmail.com>2017-12-08 20:25:02 +0100
committerGabriel Caruso <carusogabriel34@gmail.com>2017-12-20 17:43:45 +0100
commitdfa52f3ed31696c58fdc85273f4408559233b19e (patch)
tree63ca4ac93f9fd6f3afe5a91ef25701391ec9e593 /tests/codeigniter/core/Security_test.php
parent3ecfcaa94bbae55fec8c2c9bbf8524c49816342f (diff)
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);
}
// --------------------------------------------------------------------