1--TEST-- 2Check Glob iterator is okay with SplFileInfo getPath method calls 3--FILE-- 4<?php 5 6$o = new GlobIterator(__DIR__.'/*.abcdefghij'); 7 8echo "Test getATime()\n"; 9var_dump($o->getATime()); 10echo "Test getBasename()\n"; 11var_dump($o->getBasename()); 12echo "Test getCTime()\n"; 13var_dump($o->getCTime()); 14echo "Test getExtension()\n"; 15var_dump($o->getExtension()); 16echo "Test getFilename()\n"; 17var_dump($o->getFilename()); 18echo "Test getGroup()\n"; 19var_dump($o->getGroup()); 20echo "Test getInode()\n"; 21var_dump($o->getInode()); 22echo "Test getMTime()\n"; 23var_dump($o->getMTime()); 24echo "Test getOwner()\n"; 25var_dump($o->getOwner()); 26echo "Test getPath()\n"; 27var_dump($o->getPath()); 28echo "Test getPathInfo()\n"; 29var_dump($o->getPathInfo()); 30echo "Test getPathname()\n"; 31var_dump($o->getPathname()); 32echo "Test getPerms()\n"; 33var_dump($o->getPerms()); 34echo "Test getRealPath()\n"; 35var_dump($o->getRealPath()); 36echo "Test getSize()\n"; 37var_dump($o->getSize()); 38echo "Test getType()\n"; 39var_dump($o->getType()); 40echo "Test isDir()\n"; 41var_dump($o->isDir()); 42echo "Test isExecutable()\n"; 43var_dump($o->isExecutable()); 44echo "Test isFile()\n"; 45var_dump($o->isFile()); 46echo "Test isLink()\n"; 47var_dump($o->isLink()); 48echo "Test isReadable()\n"; 49var_dump($o->isReadable()); 50echo "Test isWritable()\n"; 51var_dump($o->isWritable()); 52echo "Test __toString()\n"; 53var_dump($o->__toString()); 54echo "Test __debugInfo()\n"; 55var_dump($o); 56 57?> 58--EXPECTF-- 59Test getATime() 60bool(false) 61Test getBasename() 62string(0) "" 63Test getCTime() 64bool(false) 65Test getExtension() 66string(0) "" 67Test getFilename() 68string(0) "" 69Test getGroup() 70bool(false) 71Test getInode() 72bool(false) 73Test getMTime() 74bool(false) 75Test getOwner() 76bool(false) 77Test getPath() 78string(0) "" 79Test getPathInfo() 80NULL 81Test getPathname() 82string(0) "" 83Test getPerms() 84bool(false) 85Test getRealPath() 86string(%d) "%s" 87Test getSize() 88bool(false) 89Test getType() 90bool(false) 91Test isDir() 92bool(false) 93Test isExecutable() 94bool(false) 95Test isFile() 96bool(false) 97Test isLink() 98bool(false) 99Test isReadable() 100bool(false) 101Test isWritable() 102bool(false) 103Test __toString() 104string(0) "" 105Test __debugInfo() 106object(GlobIterator)#1 (4) { 107 ["pathName":"SplFileInfo":private]=> 108 string(0) "" 109 ["fileName":"SplFileInfo":private]=> 110 string(0) "" 111 ["glob":"DirectoryIterator":private]=> 112 string(%d) "glob://%s" 113 ["subPathName":"RecursiveDirectoryIterator":private]=> 114 string(0) "" 115} 116