Why are PHP's mocking libraries so weak? ### [phpunit-mock-objects](http://phpunit.de/manual/3.7/en/test-doubles.html) Kludgy, disgusting syntax. ### [mockery](https://github.com/padraic/mockery) Seems to have the most momentum, but I don't like its DSL, which seems more complex than 95% of cases need. Bad docs: a 1,600-line README? ### [AspectMock](https://github.com/Codeception/AspectMock) Dead-simple syntax (four public methods to remember) and the ability to mock non-dependency-injected code. Heavy overhead in the AOP framework it relies on. But this is still the library I'm liking the best. ### [Phake](https://github.com/mlively/Phake) Nicer verification (like spies), but stubbing syntax is as bad as mockery. Bad docs. ### [Prophecy](https://github.com/phpspec/prophecy) [Oh come on!!](http://cl.ly/image/081i1C2E2x2w) — who's inventing this stuff?!