private function SplFileInfoPatch::nodeIsDirectoryIterator in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/phpspec/prophecy/src/Prophecy/Doubler/ClassPatch/SplFileInfoPatch.php \Prophecy\Doubler\ClassPatch\SplFileInfoPatch::nodeIsDirectoryIterator()
Parameters
ClassNode $node:
Return value
boolean
1 call to SplFileInfoPatch::nodeIsDirectoryIterator()
- SplFileInfoPatch::apply in vendor/
phpspec/ prophecy/ src/ Prophecy/ Doubler/ ClassPatch/ SplFileInfoPatch.php - Updated constructor code to call parent one with dummy file argument.
File
- vendor/
phpspec/ prophecy/ src/ Prophecy/ Doubler/ ClassPatch/ SplFileInfoPatch.php, line 79
Class
- SplFileInfoPatch
- SplFileInfo patch. Makes SplFileInfo and derivative classes usable with Prophecy.
Namespace
Prophecy\Doubler\ClassPatchCode
private function nodeIsDirectoryIterator(ClassNode $node) {
$parent = $node
->getParentClass();
return 'DirectoryIterator' === $parent || is_subclass_of($parent, 'DirectoryIterator');
}