Highly opinionated mocking framework for PHP 5.3+
Extension that adds support for method calls on primitive types in PHP
Mockery is a simple yet flexible PHP mock object framework for use in unit testing with PHPUnit, PHPSpec or any other testing framework. Its core goal is to offer a test double framework with a succinct API capable of clearly defining all possible object operations and interactions using a human readable Domain Specific Language (DSL).
Easily decorate your method calls with laravel-decorator package
Use middleware to decorate method calls within your application code.