PHP Mocking framework

Installs: 3 030

Dependents: 1

Stars: 11

Watchers: 1

Forks: 3

Open Issues: 1

3.0.0 2015-06-19 13:04 UTC


mockster is a full-fledged, zero-configuration mocking framework for PHP.

Main Features

  • Automatic mocking of dependencies, return values, method and constructor arguments
  • Support of Four-Phase testing by defining the context first and asserting expectations second
  • Fine-grained configuration of the behaviour


To use mockster in your project, require it with Composer

composer require "rtens/mockster"

If you would like to develop on mockster, clone it with git, download its dependencies with Composer and execute the specification with scrut

git clone https://github.com/rtens/mockster.git
cd mockster
composer update


You can find all documentation in form of executable specification on dox.


I'm looking forward to any kind of contribution including feedback about how unnecessary this project is, bugs and suggestions for missing features. Just open a new issue or check out the open issues.