[WIP] Fixed falling ExplainAdminCommandTest test on php 5.3, fixed missing metadata mock, fixed EOL difference.