Skip to content

Commit 30500c3

Browse files
committed
test cases updated for new model 2
1 parent 1441834 commit 30500c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/csrfprotector_test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ public function testAuthorisePost_success()
254254
$temp = $_SESSION[csrfprotector::$config['CSRFP_TOKEN']];
255255

256256
csrfprotector::authorizePost(); //will create new session and cookies
257-
$this->assertFalse($temp_elems == $_SESSION[csrfprotector::$config['CSRFP_TOKEN']][0]);
257+
$this->assertFalse($temp == $_SESSION[csrfprotector::$config['CSRFP_TOKEN']][0]);
258258
$this->assertTrue(csrfp_wrapper::checkHeader('Set-Cookie'));
259259
$this->assertTrue(csrfp_wrapper::checkHeader('csrfp_token'));
260260
$this->assertTrue(csrfp_wrapper::checkHeader($_SESSION[csrfprotector::$config['CSRFP_TOKEN']][0])); // Combine these 3 later

0 commit comments

Comments
 (0)