Skip to content

Commit 61b2af3

Browse files
committed
Some sanity cleanups
1 parent 813ea38 commit 61b2af3

8 files changed

+8
-8
lines changed

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<ini name="error_reporting" value="E_ALL"/>
66
</php>
77
<testsuite name="OWASP CSRF Protector php">
8-
<!-- <directory>./test/csrfprotector_test.php</directory> -->
8+
<directory>./test/csrfprotector_test.php</directory>
99
<directory>./test/csrfprotector_test_customlogger.php</directory>
1010
</testsuite>
1111
<filter>

test/config.test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@
2323
),
2424
"disabledJavascriptMessage" => "sample error message",
2525
"verifyGetFor" => array()
26-
);
26+
);

test/config.testInit_incompleteConfigurationException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
),
1919
"disabledJavascriptMessage" => "sample error message",
2020
"verifyGetFor" => array()
21-
);
21+
);

test/config.testInit_withoutInjectedCSRFGuardScript.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@
2323
),
2424
"disabledJavascriptMessage" => "sample error message",
2525
"verifyGetFor" => array()
26-
);
26+
);

test/csrfprotector_test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class_alias('\PHPUnit\Framework\TestCase', '\PHPUnit_Framework_TestCase');
1515
/**
1616
* main test class
1717
*/
18-
class csrfp_test extends TestCase {
18+
class csrfp_test extends PHPUnit_Framework_TestCase {
1919
/**
2020
* @var array to hold current configurations
2121
*/

test/csrfprotector_test_customlogger.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,4 @@ public function testCustomLogger_onLogAttack_loggerIsCalled() {
6969

7070
$this->assertNotNull($fakeLogger->getLastMessageLogged());
7171
}
72-
}
72+
}

test/fakeLogger.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ public function log($message, $context = array()) {
2626
$this->lastContext = $context;
2727
}
2828
}
29-
}
29+
}

test/testHelpers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,4 @@ public static function getHeaderValue($needle) {
4949
}
5050
}
5151
}
52-
?>
52+
?>

0 commit comments

Comments
 (0)