Issue #2029493 by helmo: Fixed testBackendMethodPost fails on php 5.4.

Now it fails properly