The constant is now deprecated

This commit is contained in:
Joas Schilling 2015-10-14 15:15:42 +02:00
parent aa10825026
commit d904a09a04
2 changed files with 2 additions and 2 deletions

View File

@ -5,6 +5,6 @@
*/ */
class BadClass { class BadClass {
public function foo() { public function foo() {
$bar = OC_API::ADMIN_AUTH; $bar = \OC_API::ADMIN_AUTH;
} }
} }

View File

@ -38,6 +38,7 @@ class DeprecationCheckTest extends TestCase {
['OCP\AppFramework\IApi', 1006, 'test-deprecated-use-alias.php'], ['OCP\AppFramework\IApi', 1006, 'test-deprecated-use-alias.php'],
['AppFramework\IApi', 1001, 'test-deprecated-use-sub.php'], ['AppFramework\IApi', 1001, 'test-deprecated-use-sub.php'],
['OAF\IApi', 1001, 'test-deprecated-use-sub-alias.php'], ['OAF\IApi', 1001, 'test-deprecated-use-sub-alias.php'],
['OC_API::ADMIN_AUTH', 1003, 'test-const.php'],
]; ];
} }
@ -61,7 +62,6 @@ class DeprecationCheckTest extends TestCase {
['test-extends.php'], ['test-extends.php'],
['test-implements.php'], ['test-implements.php'],
['test-static-call.php'], ['test-static-call.php'],
['test-const.php'],
['test-new.php'], ['test-new.php'],
['test-use.php'], ['test-use.php'],
['test-identical-operator.php'], ['test-identical-operator.php'],