[Halo] Add functionality to mock and unmock functions

Review Request #169 — Created Oct. 3, 2013 and submitted — Latest diff uploaded

pprkut
Lunr
master
179
lunr
Refine how we use runkit and make it possible to revert a function redefinition. This allows us to drop @runInSeparateProcess for tests using runkit, which should give us a significant speed boost when running all unit tests.
Example implementation for the Request class.

Changes between revision 1 and 2

orig
1
2
src/Lunr/Corona/Tests/RequestRunkitTest.php
Loading...