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