For many novice developers of PHP, testing their own code is a tricky issue. If there is a problem, they will not know what to do next. It's a very unwise choice to spend a long time debugging PHP code, and the best way to do that is to write the test code before you write the application code:www.itxdl.cn. Automated testing can greatly mitigate and improve the workflow of PHP development, which helps developers manage most tasks to focus more on developing logic's test code. This article will introduce you to PHP Automatic test framework Top 10, Welcome to tasting!
PHPUnit
The PHP unit is a lightweight PHP test framework. It is a full porting to the JUnit 3 Series version under PHP 5, a member of the Xunit Test framework family (both of which are based on the design of model pioneer Kent Beck).
Unit testing is the foundation of several modern agile development approaches, making phpunit a key tool for many large PHP projects. This tool can also be used by the xdebug extension to generate code coverage reports, and can be integrated with phing for automated testing, and finally it can be integrated with selenium to complete large-scale automated integration testing.
Selenium
Selenium is a tool for Web application testing. Selenium's test cases run directly in the browser, just as the real user is doing. Compared with the mainstream web Automation testing framework QTP, Ruby-based Watir, selenium supports a variety of browsers such as IE, Mozilla Firefox, automatic recording scripts and the automatic generation of Java, C #, Ruby and many other running languages, use case making fast Run fast. Compared to the selenium appears more flexible and practical.
Codeception
Codeception is an excellent PHP test framework with a full stack that helps simplify the process of creating unit tests and functional acceptance tests. The codeception extension makes it easy to configure your application at test time.
Behat
Behat is a behavior-driven development (BDD) framework that tests business expectations, allows users to write easy-to-read story-driven code, and describes how the app should work. Anyone can quickly and easily grasp how it is used.
Kahlan
Kahlan is a fully functional BDD test framework that can be used to write unit tests using the syntax that describes it. It has a code base 10 times times smaller than PHPUnit, which provides developers with a scalable, customizable test flow.
Atoum
Atoum is a modern, simple and intuitive PHP 5.3+ Unit Testing Framework, similar to SimpleTest and PHPUnit. It enables rapid implementation, simplifies test development, and allows the writing of reliable, readable, and concise unit tests.
Peridot
Peridot is a highly extensible, easy-to-use PHP test framework that supports PHP 5.4+. Peridot makes testing more fun! Developers can create plugins, customize test reports, and more.
Storyplayer
Storyplayer is a full stack test framework that writes end-to-end testing for the entire platform. It follows the TDD test approach, allowing developers to write functional tests that can examine the application.
Phpspec
Phpspec is PHP's SPECBDD framework, which is a PHP test framework that is driven by canonical exceptions.
Mockery
Mockery is a simple and flexible php mock object framework that is commonly used in unit tests of Phpunit,phpspec or other test frameworks. Its core goal is to provide a two-way test framework that provides a succint API that clearly defines all possible object operations and interactions.
PHP Automatic test Framework Top 10