Testing the printing of a JSON in PHP