note 107803 deleted from class.recursiveiteratoriterator by salathe
| From: | salathe@php.net | Date: | Wed, 07 Mar 2012 09:22:21 +0000 |
| Subject: | note 107803 deleted from class.recursiveiteratoriterator by salathe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-186515@lists.php.net to get a copy of this message | ||
Note Submitter: Aaron
----
A gotcha when using RecursiveIteratorIterator with vfsStream for testing. When creating the root
directory in vfsStream make sure to not append a slash, otherwise the RecursiveIteratorIterator will
not iterate through your virtual filesystem.
i.e.
$virtualDir = "test" // not "test/"
vfsStream::setup($virtualDir);
...