function 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 214
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();
}