function InjectedApiInterface::is_dir in X Autoload 7.5
Same name and namespace in other branches
- 7.4 lib/ClassFinder/InjectedApi/InjectedApiInterface.php \Drupal\xautoload\ClassFinder\InjectedApi\InjectedApiInterface::is_dir()
This is done in the injected api object, so we can easily provide a mock implementation.
1 method overrides InjectedApiInterface::is_dir()
- AbstractInjectedApi::is_dir in src/
ClassFinder/ InjectedApi/ AbstractInjectedApi.php - This is done in the injected api object, so we can easily provide a mock implementation.
File
- src/
ClassFinder/ InjectedApi/ InjectedApiInterface.php, line 17
Class
- InjectedApiInterface
- To help testability, we use an injected API instead of just a return value. The injected API can be mocked to provide a mocked file_exists(), and to monitor all suggested candidates, not just the correct return value.
Namespace
Drupal\xautoload\ClassFinder\InjectedApiCode
function is_dir($dir);