class NoInstantiationMockStaticCallable
Same name in other branches
- 10 core/tests/Drupal/Tests/Core/Utility/CallableResolverTest.php \Drupal\Tests\Core\Utility\NoInstantiationMockStaticCallable
Hierarchy
- class \Drupal\Tests\Core\Utility\NoInstantiationMockStaticCallable
Expanded class hierarchy of NoInstantiationMockStaticCallable
File
-
core/
tests/ Drupal/ Tests/ Core/ Utility/ CallableResolverTest.php, line 232
Namespace
Drupal\Tests\Core\UtilityView source
class NoInstantiationMockStaticCallable {
public function __construct() {
throw new \Exception(sprintf('The class %s should not require instantiation for the static method to be called.', __CLASS__));
}
public static function staticMethod($suffix) {
return __METHOD__ . '+' . $suffix;
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
NoInstantiationMockStaticCallable::staticMethod | public static | function | |
NoInstantiationMockStaticCallable::__construct | public | function |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.