11 Best PHP Automated Test Frameworks


Automated testing can significantly improve the workflow of PHP development by allowing pre-written tests to drive the development process.Manual testing can be replaced by automated testing in which we use specific softwares that will do the tiresome work for us, and we can spend more time with creating the logic of the testing code.

PHP is luckily a quite popular programming language, so there are many automated testing frameworks we can choose from.So here is a list of 15 best PHP Automated Test Frameworks.

Best PHP Automated Test Frameworks

PHPUnit is a programmer-oriented testing framework for PHP.It is an instance of the xUnit architecture for unit testing frameworks.It can be used via the command line, and it provides us with a handy TestCase class that we can extend according to our needs.


View Details



atoum is a unit testing framework specific to the PHP language.However, it has been designed from the start with the following ideas in mind:

  • Can be implemented rapidly ;
  • Simplify test development ;
  • Allow for writing reliable, readable, and clear unit tests ;


View Details


See More: 25 Best PHP Social Network Script


phpspec is a tool which can help you write clean and working PHP code using behaviour driven development or BDD. BDD is a technique derived from test-first development.

BDD is a technique used at story level and spec level. phpspec is a tool for use at the spec level or SpecBDD. The technique is to first use a tool like phpspec to describe the behaviour of an object you are about to write. Next you write just enough code to meet that specification and finally you refactor this code.


View Details



It’s a highly extensible, highly enjoyable, BDD testing framework for PHP.Peridot is event driven, so writing plugins or ad hoc extensions is painless. Peridot events and scopes allow you to easily add test helpers, custom reporters, and plugins.It suites load and run faster than similar PHPUnit or phpspec suites.


View Details


See More: 22 Best JavaScript Libraries Of October 2015


it is for automating web applications for testing purposes, but is certainly not limited to just that. Boring web-based administration tasks can (and should!) also be automated as well.

Selenium has the support of some of the largest browser vendors who have taken (or are taking) steps to make Selenium a native part of their browser. It is also the core technology in countless other browser automation tools, APIs and frameworks.


View Details



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 succint API capable of clearly defining all possible object operations and interactions using a human readable Domain Specific Language (DSL).


View Details



It brings your stories to life using simple and powerful test automation.It also test your web app or API. End-to-end test your platform.Test software written in any programming language.


View Details


See More: 15 Best Books For Web Designers And Developers


It’s integrated with many PHP development frameworks such as Symfony2, Laravel4, Yii, Phalcon, and the Zend Framework. This means that we can use a PHP automation testing framework and a PHP development framework together to establish a superefficient development workflow.


View Details



Kahlan is a full-featured Unit & BDD test framework a la RSpec/JSpec which uses a describe-itsyntax and moves testing in PHP one step forward.


View Details



PHO is a BDD test framework for PHP, inspired by Jasmine and RSpec. Features a familiar syntax, and a watch command to automatically re-run specs during development. It can also be extended with custom matchers and reporters.


View Details


See More: Top 10 PHP Scripts Of 2015


It is a PHP unit test and web test framework. Users of JUnit will be familiar with most of the interface. The JWebUnit style functionality is more complete now. It has support for SSL, forms, frames, proxies and basic authentication. The idea is that common but fiddly PHP tasks, such as logging into a site, can be tested easily.


View Details

One comment

Leave a Reply