komex / delusion
Mock object instrument. Allows to mock and stub all not build-in objects and static classes.
Requires
- php: >=5.4.0
- ext-tokenizer: *
Requires (Dev)
- komex/unteist: dev-develop
Suggests
- komex/unteist: A powerful unit test framework.
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.
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
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.