CheckOps
Codeception
Codeception is an MIT-licensed full-stack PHP testing framework covering unit, functional, API and acceptance tests in one tool, with modules for WebDriver, REST, databases and frameworks such as Laravel and Symfony.
- Unit Testing
- Php
- Open source
- Free
- Web Testing
- API testing
- Bdd
- Unit testing
- API & contract testing
- End-to-end & functional
- Integration testing
Latest public signals
Not refreshed yet. Refresh reads the public site and, when the entry has a GitHub repository, the latest release.
Introduction
Codeception is a PHP testing framework designed to cover every level of testing in one place. Built on top of PHPUnit, it organises tests into suites (unit, functional and acceptance by default, plus API suites) and gives each suite an “actor” object, such as $I, whose methods read like a scenario: $I->amOnPage('/login'); $I->fillField('email', ...); $I->see('Welcome');.
Capabilities come from modules. PhpBrowser simulates a browser over HTTP, WebDriver drives real browsers through Selenium or ChromeDriver, REST and SOAP modules test APIs, Db and framework modules (Laravel, Symfony, Yii, Laminas and others) provide fixtures and in-process functional tests. Tests can be written as Cest classes, classic PHPUnit-style unit tests, or Gherkin feature files. Codeception generates code for suites and actors, supports environments and data providers, and produces HTML, XML and JUnit-style reports, with code coverage via PHPUnit. Version 5.3.7 was released on 3 October 2026.
The source code is at Codeception/Codeception on GitHub under the MIT licence, with about 4,900 stars; the most recent commit was on 3 October 2026.
Features
- All test levels: Unit, functional, API and acceptance suites.
- Readable actors: Scenario-style
$I->methods. - Modules: WebDriver, PhpBrowser, REST, Db and framework integrations.
- Gherkin support: Write BDD features alongside Cests.
Pros
- Free to use: Open source under the MIT licence, so the core tool costs nothing to use.
- Actively maintained: The repository had commits as recent as 3 October 2026.
- Community: About 4,900 GitHub stars.
Cons
- More abstraction: Actors and modules add concepts on top of PHPUnit.
- Configuration-heavy: Many suites and modules mean more YAML to maintain.
Usage and Links (Example)
composer require --dev codeception/codeception codeception/module-phpbrowser codeception/module-asserts
vendor/bin/codecept bootstrap
vendor/bin/codecept generate:cest Acceptance Login
class LoginCest
{
public function logsIn(AcceptanceTester $I): void
{
$I->amOnPage('/login');
$I->fillField('email', 'ana@example.com');
$I->fillField('password', 'secret');
$I->click('Sign in');
$I->see('Dashboard');
}
}
vendor/bin/codecept run Acceptance --html
Resources:
Pricing
Codeception is free and open source under the MIT licence.
Recommended for?
- PHP teams wanting unit, API and browser tests in one framework.
- Laravel, Symfony and Yii projects using framework modules.
Conclusion
Codeception remains a versatile full-stack testing framework for PHP, especially valuable when one tool should cover every test level.
Alternatives
Other tools on CheckOps that cover similar ground. Open a page, or compare one with Codeception side by side.
PPHPUnitPHPUnit is the BSD-3-Clause, programmer-oriented testing framework for PHP and an instance of the xUnit architecture, created by Sebastian Bergmann and distributed as a PHAR or via Composer.Compare with Codeception
PPestPest is an MIT-licensed PHP testing framework built on PHPUnit with an expressive, closure-based API; Pest 5 (PHP 8.4+, PHPUnit 13) adds the Tia engine, an agent plugin, evals, PHPStan and Rector support.Compare with Codeception
BBehatBehat is an MIT-licensed behaviour-driven development framework for PHP that runs Gherkin feature files against PHP context classes, often paired with Mink for browser testing.Compare with Codeception
Pphpspecphpspec is an MIT-licensed specification-oriented BDD toolset for PHP that helps you design classes by writing specs first, with code generation for missing classes and methods.Compare with Codeception
SSeleniumA browser automation framework and ecosystem.Compare with Codeception
MMockeryMockery is a BSD-3-Clause mock object framework for PHP with a fluent, readable expectation API, usable with PHPUnit, Pest and other frameworks, and bundled with Laravel's testing tools.Compare with Codeception