Skip to content

Commit 1eaa892

Browse files
committed
fixes for php < 5.6.x
1 parent b21483f commit 1eaa892

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"homepage": "https://github.com/mebjas/CSRF-Protector-PHP",
77
"license": "APACHE",
88
"require-dev": {
9-
"satooshi/php-coveralls": "dev-master"
9+
"satooshi/php-coveralls": "~1.0"
1010
},
1111
"autoload": {
1212
"classmap": ["libs/csrf/"]

test/csrfprotector_test.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,15 @@ class csrfp_test extends PHPUnit_Framework_TestCase
8181
/**
8282
* @var log directory for testing
8383
*/
84-
private $logDir = __DIR__ .'/logs';
84+
private $logDir;
8585

8686
/**
8787
* Function to be run before every test*() functions.
8888
*/
8989
public function setUp()
9090
{
91+
$this->logDir = __DIR__ .'/logs';
92+
9193
csrfprotector::$config['jsPath'] = '../js/csrfprotector.js';
9294
csrfprotector::$config['CSRFP_TOKEN'] = 'csrfp_token';
9395
csrfprotector::$config['secureCookie'] = false;

0 commit comments

Comments
 (0)