diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-05-05 12:59:33 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-05-05 12:59:33 +0200 |
commit | aae098c24a2c588ff195427f3404b9d679fd9eba (patch) | |
tree | 35717e110aefbe60bb01d6ccd7090e67d576d17d /tests/lib/app | |
parent | 5aa3525479a29ea0521db9050d3ef22e17729e94 (diff) | |
download | nextcloud-server-aae098c24a2c588ff195427f3404b9d679fd9eba.tar.gz nextcloud-server-aae098c24a2c588ff195427f3404b9d679fd9eba.zip |
Check usage of != and == - refs #16054
Diffstat (limited to 'tests/lib/app')
-rw-r--r-- | tests/lib/app/codechecker.php | 8 |
1 files changed, 6 insertions, 2 deletions
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'], ]; } } |