Show all tags
Overwrite PHP’s built-in functions in unit tests
4 Mar 2014
In unit tests you might run in problems, when your code uses PHP built-in functions, that emit certain hard-coded values like session_start(). When you use PHP namespaces, however, you can solve this problem in an elegant way.
session_start()