private function vfsStreamWrapper::isInRoot in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/mikey179/vfsStream/src/main/php/org/bovigo/vfs/vfsStreamWrapper.php \org\bovigo\vfs\vfsStreamWrapper::isInRoot()
helper method to detect whether given path is in root path
Parameters
string $path:
Return value
bool
1 call to vfsStreamWrapper::isInRoot()
- vfsStreamWrapper::getContent in vendor/
mikey179/ vfsStream/ src/ main/ php/ org/ bovigo/ vfs/ vfsStreamWrapper.php - returns content for given path
File
- vendor/
mikey179/ vfsStream/ src/ main/ php/ org/ bovigo/ vfs/ vfsStreamWrapper.php, line 208
Class
- vfsStreamWrapper
- Stream wrapper to mock file system requests.
Namespace
org\bovigo\vfsCode
private function isInRoot($path) {
return substr($path, 0, strlen(self::$root
->getName())) === self::$root
->getName();
}