Full-stack testing framework for PHP
open sourceMITfree
Codeception is an MIT-licensed testing framework for PHP web applications that covers unit, functional, acceptance and API tests in one tool. Acceptance tests are written as a user's actions and run in real browsers through Selenium WebDriver or an emulated browser over HTTP (PhpBrowser); functional tests run inside Symfony, Laravel, Yii, Laminas or Phalcon without a web server; REST and SOAP modules check JSON and XML responses, and database modules load and compare data from MySQL, PostgreSQL, MongoDB and Redis. It's built on top of PHPUnit and runs PHPUnit tests too. It's installed with Composer as codeception/codeception, with modules as separate packages.
Problems it solves
- write browser acceptance tests for a PHP web app
- test a Laravel or Symfony app's pages without starting a web server
- one PHP testing tool for unit, functional and end-to-end tests
Features
- acceptance tests in real browsers through Selenium WebDriver
- emulated browser testing with PhpBrowser
- functional tests inside Symfony, Laravel, Yii, Laminas and Phalcon
- REST and SOAP API testing
- database fixtures and snapshots
- BDD with Gherkin
- code coverage and parallel execution
Alternatives
The same job
These do what Codeception does.
- Behat Behaviour-driven development for PHP
- PHPUnit The testing framework for PHP
- SymfonyExtension (Behat) Behat extension that runs your contexts as Symfony services and tests the app without a server
- Pest The elegant PHP testing framework
