Skip to content

Latest commit

 

History

History
156 lines (110 loc) · 8.4 KB

php-test-automation.md

File metadata and controls

156 lines (110 loc) · 8.4 KB

PHP test automation

A comprehensive curated list of PHP test automation frameworks, tools, libraries and software to help software engineers easily bootstrap test automation on PHP. Sponsored by http://sdclabs.com

Have questions\issues\problems, join the chat at https://gitter.im/atinfo/awesome-test-automation

Table of content:

Also:


xUnit frameworks

  • PHPUnit - Most known testing frameworks based on xUnit architecture. Full line coverage, pathc coverage, extended reports and even hhvm are pre-built.
  • Atoum - Lightweight PHP unit testing framework with simple report generation.

Mock frameworks

  • php-vfs - Virtual filesystem provider
  • adlawson/vfs - Another virtual filesystem provider
  • vfsStream - A stream wrapper for a virtual file system that may be helpful in unit tests to mock the real file system. It can be used with any unit test framework, like PHPUnit or SimpleTest.
  • Mockery - Objects mocking and method call assertions framework
  • Prophecy - Object mocking framework for PHP.
  • Phake - Mock php objects, test doubles and method stubs, inspired by Mockito for Java.
  • Codeception's AspectMock - AspectMock allows you to stub and mock practically anything in your PHP code.

TDD \ ATDD \ BDD

  • BDD
    • Behat - BDD framework for PHP to help you test business expectations.
    • Codeception - BDD-styled PHP testing framework; Selenium WebDriver integration, Symfony2, Laravel4, Yii, Phalcon, Zend Framework support; PageObjects and StepObjects included, BDD-style readable tests, powered by PHPUnit, API testing: REST,SOAP,XML-RPC; Facebook API testing; Data Cleanup; HTML, XML, TAP, JSON reports; CodeCoverage and Remote CodeCoverage; Parallel Execution, etc

Code analysis

Contribute to this section

Web UI test automation

Mobile test automation

Contribute to this section

Windows UI test automation

Contribute to this section

Unix \ Linux UI test automation

Contribute to this section

MacOS UI test automation

Contribute to this section

Virtual environments

  • Vagrant - configuration-driven virtual machines
  • Docker - ultimate containerization tool

Performance & stress & load

Contribute to this section

Security checking

Contribute to this section

Continuous Integration

  • PHPCI - Free and open source continuous integration tool specifically designed for PHP.
  • Jenkins PHP project template - The goal of this project is to provide a standard template for Jenkins jobs for PHP projects.

Reporting

  • Allure Framework - Allure Framework is a framework that provides rich and beautiful reports with extended possibilities like screenshot capturing. Allure provides plugins for Codeception and PHPUnit.

Documentation generation

Contribute to this section

Editors, IDE, consoles

  • PhpStorm - PHP IDE with highlighting, code analyzer, debugging features, all kinds of repositories and many others.
  • ZendStudio - PHP IDE from PHP creators' company, multiply features + different js frameworks supports.
  • NetBeans - Open source free PHP IDE.
  • Aptana - Another free IDE.

Useful libs

  • PHP CS Fixer - tool for automatic convention violations correction

Resources

Where to discover new libraries, information, tools, etc.

Websites

Other Awesome Test Automation Lists

Your contributions are always welcome!