ytest is a PHPUnit extension, based on the PHP extension "runkit", that allows you to replace static, private, and global functions with fakes, stubs, or mocks. This eases the automated testing of PHP applications that weren't written in a TDD fashion (i.e. test-first). It can also be helpful on projects where many methods are kept private, or projects that don't use OOP so much. ytest has already been used to "test after" (as opposed to "test first") some real-life commercial projects, and has proven useful. It needs PHP >= 5.2.
| Tags | PHP PHPUnit runkit Unit test Unit Testing mocking Mock |
|---|---|
| Licenses | BSD Revised |
| Operating Systems | Unix Linux |
| Implementation | PHP 5.2+ |
| Translations | English |
Groupware that lets you share projects, calendars, files, and email online.
Virtualization and HA Management of virtual machines and embedded HA Storage.