mardi 27 octobre 2020

Mocking env() in PHPUnit test

I'm trying to test my applications ability to handle missing configuration.

How do I mock calls to env()?

I can't find any documentation in Mockery for mocking global function calls...

Aucun commentaire:

Enregistrer un commentaire