Improve php mocker.
Optimization.