phpunit
vfsStream is a stream wrapper for a virtual file system that may be helpful in unit tests to mock the real file system. It can be used with any unit test framework, like PHPUnit or SimpleTest.
Removes final
and readonly
keywords from source code on-the-fly and allows mocking of final methods and classes. It can be used together with any test tool such as PHPUnit or Mockery.
Highly opinionated mocking framework for PHP 5.3+.
Prophecy is a highly opinionated yet very powerful and flexible PHP object mocking framework. Though initially it was created to fulfil phpspec2 needs, it is flexible enough to be used inside any testing framework out there with minimal effort.
💥 Collision is a beautiful error reporting tool for command-line applications
Collision was created by, and is maintained by Nuno Maduro, and is a package designed to give you beautiful error reporting when interacting with your app through the command line.
- It's included on Laravel, the most popular free, open-source PHP framework in the world.
- Built on top of the Whoops error handler.
- Supports Laravel, Symfony, PHPUnit, and many other frameworks.
PhpUnitGen is an online and command line tool to generate your unit tests' skeletons on your projects.
The tool is divided into three GitHub repositories.
- phpunitgen-core, which contains the core of the tool's features.
- phpunitgen-console, which contains the command line interface.
- phpunitgen-webapp, which contains the web application and the API.