Skip to content

Commit

Permalink
Some sanity cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
mebjas committed May 23, 2020
1 parent 813ea38 commit 61b2af3
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<ini name="error_reporting" value="E_ALL"/>
</php>
<testsuite name="OWASP CSRF Protector php">
<!-- <directory>./test/csrfprotector_test.php</directory> -->
<directory>./test/csrfprotector_test.php</directory>
<directory>./test/csrfprotector_test_customlogger.php</directory>
</testsuite>
<filter>
Expand Down
2 changes: 1 addition & 1 deletion test/config.test.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@
),
"disabledJavascriptMessage" => "sample error message",
"verifyGetFor" => array()
);
);
2 changes: 1 addition & 1 deletion test/config.testInit_incompleteConfigurationException.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
),
"disabledJavascriptMessage" => "sample error message",
"verifyGetFor" => array()
);
);
2 changes: 1 addition & 1 deletion test/config.testInit_withoutInjectedCSRFGuardScript.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@
),
"disabledJavascriptMessage" => "sample error message",
"verifyGetFor" => array()
);
);
2 changes: 1 addition & 1 deletion test/csrfprotector_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
2 changes: 1 addition & 1 deletion test/csrfprotector_test_customlogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@ public function testCustomLogger_onLogAttack_loggerIsCalled() {

$this->assertNotNull($fakeLogger->getLastMessageLogged());
}
}
}
2 changes: 1 addition & 1 deletion test/fakeLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ public function log($message, $context = array()) {
$this->lastContext = $context;
}
}
}
}
2 changes: 1 addition & 1 deletion test/testHelpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ public static function getHeaderValue($needle) {
}
}
}
?>
?>

0 comments on commit 61b2af3

Please sign in to comment.