trying to be compatible with new changes in phpunit mocking of native File objects, refs #28