Fix unit tests for PHP >= 5.4.29 or >= 5.5.13

Fix for #351

Fixes the unit tests when running on the PHP versions that changed the serialization behavior. There's no way to mock internal classes without calling the constructor, so the easiest fix is to use an actual instance of SplFileInfo instead of using a mock.