summaryrefslogtreecommitdiffstats
path: root/tests/lib/App/CodeChecker/CodeCheckerTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/App/CodeChecker/CodeCheckerTest.php')
-rw-r--r--tests/lib/App/CodeChecker/CodeCheckerTest.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/lib/App/CodeChecker/CodeCheckerTest.php b/tests/lib/App/CodeChecker/CodeCheckerTest.php
index cdbb7c17da5..bb121eccc44 100644
--- a/tests/lib/App/CodeChecker/CodeCheckerTest.php
+++ b/tests/lib/App/CodeChecker/CodeCheckerTest.php
@@ -23,7 +23,8 @@ class CodeCheckerTest extends TestCase {
*/
public function testFindInvalidUsage($expectedErrorToken, $expectedErrorCode, $fileToVerify) {
$checker = new CodeChecker(
- new PrivateCheck(new EmptyCheck())
+ new PrivateCheck(new EmptyCheck()),
+ false
);
$errors = $checker->analyseFile(\OC::$SERVERROOT . "/tests/data/app/code-checker/$fileToVerify");
@@ -49,7 +50,8 @@ class CodeCheckerTest extends TestCase {
*/
public function testPassValidUsage($fileToVerify) {
$checker = new CodeChecker(
- new PrivateCheck(new EmptyCheck())
+ new PrivateCheck(new EmptyCheck()),
+ false
);
$errors = $checker->analyseFile(\OC::$SERVERROOT . "/tests/data/app/code-checker/$fileToVerify");