dimanche 24 décembre 2017

Php - how to fail 'json_encode'?

Trying to test a method that is doing a json_encode and throwing an exception if the encode fails. However, whatever I throw at json_encode it successfully encodes. Any idea what would be something simple to have it fail?

Aucun commentaire:

Enregistrer un commentaire