AspectMock automation testing framework index.

Test More In Less Time

Run Automation Testing In Parallel On The LambdaTest Cloud

Start for free


The most powerful and flexible mocking framework for PHPUnit / Codeception.

Support and updates

  • AspectMock has 766 stars, 113 forks.
  • It has 0 major releases in the past 6 months.
  • It has 0 commits and there are 1 open pull requests.
  • It has 40 open issues and 90 have been closed.

Code statistics

  • AspectMock has 25 classes and 184 methods.

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:


You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.


AspectMock is lincensed under the MIT License

LambdaTest Community Discussions


AspectMock can be downloaded from it’s GitHub repository -

Other similar frameworks


Prophecy is a highly opinionated yet very powerful and flexible PHP object mocking framework.


Gherkin is a parser and compiler for the Gherkin language. Gherkin PHP can be used either through its command line interface (CLI) or as a library.


Mockery is a simple yet flexible PHP mock object framework for use in unit testing with PHPUnit, PHPSpec or any other testing framework.


Behat is an open source BDD framework for PHP. Tool for delivering software that matters through continuous communication, deliberate discovery and automation.


PHP Mocking Framework

Frameworks to try


Hikaku library tests if a REST-API implementation meets its specification without having to create requests which are fired against a mock server.


Provides rich strongly-typed assertions for unit testing with wide variety of frameworks


Simulate system and network conditions using a TCP proxy to perform testing


Testing API and framework for end-to-end integration and unit tests


Gauge is a light weight cross-platform test automation tool. It provides the ability to author test cases in the business language.

Run AspectMock scripts on 3000+ browsers online

Perform automation testing with AspectMock on LambdaTest, the most powerful, fastest, and secure cloud-based platform to accelerate test execution speed.

Test Now