nextcloud/tests/data/app/code-checker/test-deprecated-constant-al...

13 lines
222 B
PHP
Raw Normal View History

2015-06-15 18:20:38 +03:00
<?php
use OCP\NamespaceName\ClassName as Constant;
/**
* Class BadClass - creating an instance of a blacklisted class is not allowed
*/
class BadClass {
public function test() {
return Constant::CONSTANT_NAME;
}
}