mardi 22 mai 2018

How to test for a redirect in Slim and PHPUnit?

I am using Slim and PHPUnit, and want to test that making a GET request to a specific endpoint results in a redirect. I have tried getting the headers of the response, but they show a 200 since the response is the correctly-loaded page to which I am redirected.

Aucun commentaire:

Enregistrer un commentaire