From aae098c24a2c588ff195427f3404b9d679fd9eba Mon Sep 17 00:00:00 2001 From: Thomas Müller Date: Tue, 5 May 2015 12:59:33 +0200 Subject: Check usage of != and == - refs #16054 --- tests/lib/app/codechecker.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'tests/lib/app') diff --git a/tests/lib/app/codechecker.php b/tests/lib/app/codechecker.php index 64403fd0f23..5f4fe162c1d 100644 --- a/tests/lib/app/codechecker.php +++ b/tests/lib/app/codechecker.php @@ -9,12 +9,14 @@ namespace Test\App; use OC; +use Test\TestCase; -class CodeChecker extends \Test\TestCase { +class CodeChecker extends TestCase { /** * @dataProvider providesFilesToCheck - * @param $expectedErrors + * @param $expectedErrorToken + * @param $expectedErrorCode * @param $fileToVerify */ public function testFindInvalidUsage($expectedErrorToken, $expectedErrorCode, $fileToVerify) { @@ -33,6 +35,8 @@ class CodeChecker extends \Test\TestCase { ['OC_App', 1002, 'test-static-call.php'], ['OC_API', 1003, 'test-const.php'], ['OC_AppConfig', 1004, 'test-new.php'], + ['==', 1005, 'test-equal.php'], + ['!=', 1005, 'test-not-equal.php'], ]; } } -- cgit v1.2.3