mardi 5 juillet 2016

How do I simulate php://input in PHP?

I'm writing an unit test for my PHP project,

the unit test is to simulate a php://input data,

and I read the manual, it says:

php://input is a read-only stream that allows you to read raw data from the request body.

How do I simulate the php://input, or write the request body in my PHP?

Aucun commentaire:

Enregistrer un commentaire