phpspec/prophecy — pull request #118 by wodor (2014-08-18 15:45:17+00:00)
Title: Add support for SplFileObject

Since the SplFileInfoPatch was opened to allow parameters of subclasses, internal children of SplFileInfo stoped working i.e code like this
```
function it_test_spl_file_object(\SplFileObject $fileObject)
{
$this->foo()->shouldReturn('foo');
}
```

generates
```
34 ! it test spl file object
exception [exc:RuntimeException("SplFileObject::__construct() expects parameter 4 to be resource, null given")] has been thrown.
```

This PR is WIP, missing things:
- support for `SplTempFileObject` should be added
- smarter way of letting classes which inherit from `SplFileObject` and `SplTempFileObject` to have arbitrary parameters in constructor