PHP Automatic test Framework Top 10

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.