komex/delusion

This package is abandoned and no longer maintained. The author suggests using the komex/influence package instead.

Mock object instrument. Allows to mock and stub all not build-in objects and static classes.

dev-develop 2013-10-30 13:19 UTC

This package is not auto-updated.

Last update: 2022-02-01 12:26:51 UTC


README

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.

Build Status

Using

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.

Installing

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"
    }
}

Authors

This project was founded by Andrey Kolchenko in August of 2013.

Support or Contact

Having trouble with Delusion? Contact andrey@kolchenko.me and we’ll help you in the short time.

License

Creative Commons License
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.