php - Is it possible to mock "require" or "require_once" statement with Kahlan?
I have very old legacy code. Before starting refactoring I want to make some unit tests for the code. But the bad thing is that files relies on each other with "require_once" statements (hovewer, functions I want to test is isolated).
So I can't write normal tests if I will not be able to mock "require_once" statement.
I'm using Kahlan framework for testing. So is it possible to mock such statements? If yes, than how?