phpspec/prophecy — pull request #117 by shanethehat (2014-08-01 19:39:50+00:00)
Title: Add support for DirectoryIterators

The current SplFileInfoPatch does not work with DirectoryIterator and its children, because DirectoryIterator requires that the first argument is a directory not a file. This PR adds a check to SplFileInfoPatch that will call the parent constructor with a directory instead of a file when required.