Relative Content

Tag Archive for phpunit-testingfat-free-framework

set token in HTTP header in Fatfree framework Testing mock()

I’m inexperienced in Testing and I want to test routes in my fat-free framework project. Based on the fat-free document I can use $f3->mock(). For testing routes like the following code I should pass the user token(JWT Token) in Headers as Authorization.(in postman I set JWT token in Authorization key in Headers tab).