Phake
PHP Mocking Framework

Modern PHP Mocking Framwork for PHP7 and PHP8.

Getting started Documentation