Reformat function chains in FileTest.php

This makes the mock code more readable.
Also break a long line phpcs mentioned.

Change-Id: I6de5f05e5ab3fb18bd15518409334d39beba71cb
Merge "Reformat function chains in FileTest.php"