Delusion is a testing instrument for programmers and quality engineers that helps them to test PHP projects by giving ability to mock and stub any objects in realtime. It's works only with projects which uses Composer.
Just add one line of code before all tests to get ability to do anything with all not build-in objects and static classes:
\Delusion\Delusion::injection();After this injection all your classes will implements \Delusion\ConfiguratorInterface.
The installation of Delusion framework is very simple. All what you need to do is add komex/delusion to
require or require-dev section in composer.json like this:
{
"require-dev": {
"komex/delusion": "dev-develop"
}
}This project was founded by Andrey Kolchenko in August of 2013.
Having trouble with Delusion? Contact andrey@kolchenko.me and we’ll help you in the short time.
Unteist by Andrey Kolchenko is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Based on a work at https://github.com/komex/delusion.

