From 61b2af3cfeab6bd1703d5e5689bb3209d9cff36e Mon Sep 17 00:00:00 2001 From: Minhaz Date: Sat, 23 May 2020 17:52:15 +0800 Subject: [PATCH] Some sanity cleanups --- phpunit.xml.dist | 2 +- test/config.test.php | 2 +- test/config.testInit_incompleteConfigurationException.php | 2 +- test/config.testInit_withoutInjectedCSRFGuardScript.php | 2 +- test/csrfprotector_test.php | 2 +- test/csrfprotector_test_customlogger.php | 2 +- test/fakeLogger.php | 2 +- test/testHelpers.php | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/phpunit.xml.dist b/phpunit.xml.dist index dc02515..961ed2b 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -5,7 +5,7 @@ - + ./test/csrfprotector_test.php ./test/csrfprotector_test_customlogger.php diff --git a/test/config.test.php b/test/config.test.php index dbc80bf..0936284 100644 --- a/test/config.test.php +++ b/test/config.test.php @@ -23,4 +23,4 @@ ), "disabledJavascriptMessage" => "sample error message", "verifyGetFor" => array() -); \ No newline at end of file +); diff --git a/test/config.testInit_incompleteConfigurationException.php b/test/config.testInit_incompleteConfigurationException.php index 6f81660..86fd8a4 100644 --- a/test/config.testInit_incompleteConfigurationException.php +++ b/test/config.testInit_incompleteConfigurationException.php @@ -18,4 +18,4 @@ ), "disabledJavascriptMessage" => "sample error message", "verifyGetFor" => array() -); \ No newline at end of file +); diff --git a/test/config.testInit_withoutInjectedCSRFGuardScript.php b/test/config.testInit_withoutInjectedCSRFGuardScript.php index dcca56b..e531895 100644 --- a/test/config.testInit_withoutInjectedCSRFGuardScript.php +++ b/test/config.testInit_withoutInjectedCSRFGuardScript.php @@ -23,4 +23,4 @@ ), "disabledJavascriptMessage" => "sample error message", "verifyGetFor" => array() -); \ No newline at end of file +); diff --git a/test/csrfprotector_test.php b/test/csrfprotector_test.php index 1a11f48..61d3b73 100644 --- a/test/csrfprotector_test.php +++ b/test/csrfprotector_test.php @@ -15,7 +15,7 @@ class_alias('\PHPUnit\Framework\TestCase', '\PHPUnit_Framework_TestCase'); /** * main test class */ -class csrfp_test extends TestCase { +class csrfp_test extends PHPUnit_Framework_TestCase { /** * @var array to hold current configurations */ diff --git a/test/csrfprotector_test_customlogger.php b/test/csrfprotector_test_customlogger.php index d1ba7c5..2178f01 100644 --- a/test/csrfprotector_test_customlogger.php +++ b/test/csrfprotector_test_customlogger.php @@ -69,4 +69,4 @@ public function testCustomLogger_onLogAttack_loggerIsCalled() { $this->assertNotNull($fakeLogger->getLastMessageLogged()); } -} \ No newline at end of file +} diff --git a/test/fakeLogger.php b/test/fakeLogger.php index b015cea..9d1c080 100644 --- a/test/fakeLogger.php +++ b/test/fakeLogger.php @@ -26,4 +26,4 @@ public function log($message, $context = array()) { $this->lastContext = $context; } } -} \ No newline at end of file +} diff --git a/test/testHelpers.php b/test/testHelpers.php index a819530..4686bfe 100644 --- a/test/testHelpers.php +++ b/test/testHelpers.php @@ -49,4 +49,4 @@ public static function getHeaderValue($needle) { } } } -?> \ No newline at end of file +?>