Fix unit test to make compatibile with RingPHP making to calls to fclose.