codeception / base
BDD-style testing framework
Requires
- php: >=5.6.0 <8.0
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- behat/gherkin: ^4.4.0
- codeception/phpunit-wrapper: >6.0.15 <6.1.0 | ^6.6.1 | ^7.7.1 | ^8.0.3
- codeception/stub: ^2.0 | ^3.0
- guzzlehttp/psr7: ~1.4
- symfony/browser-kit: >=2.7 <5.0
- symfony/console: >=2.7 <5.0
- symfony/css-selector: >=2.7 <5.0
- symfony/dom-crawler: >=2.7 <5.0
- symfony/event-dispatcher: >=2.7 <5.0
- symfony/finder: >=2.7 <5.0
- symfony/yaml: >=2.7 <5.0
Requires (Dev)
- codeception/specify: ~0.3
- doctrine/annotations: ^1
- doctrine/data-fixtures: ^1
- doctrine/orm: ^2
- flow/jsonpath: ~0.2
- monolog/monolog: ~1.8
- pda/pheanstalk: ~3.0
- php-amqplib/php-amqplib: ~2.4
- predis/predis: ^1.0
- ramsey/uuid-doctrine: ^1.5
- squizlabs/php_codesniffer: ~2.0
- symfony/process: >=2.7 <5.0
- vlucas/phpdotenv: ^3.0
Suggests
- aws/aws-sdk-php: For using AWS Auth in REST module and Queue module
- codeception/phpbuiltinserver: Start and stop PHP built-in web server for your tests
- codeception/specify: BDD-style code blocks
- codeception/verify: BDD-style assertions
- flow/jsonpath: For using JSONPath in REST module
- league/factory-muffin: For DataFactory module
- league/factory-muffin-faker: For Faker support in DataFactory module
- phpseclib/phpseclib: for SFTP option in FTP Module
- stecman/symfony-console-completion: For BASH autocompletion
- symfony/phpunit-bridge: For phpunit-bridge support
- dev-master / 2.1.x-dev
- 3.1.x-dev
- 3.1.2
- 3.1.1
- 3.1.0
- 3.0.x-dev
- 3.0.3
- 3.0.0
- 2.5.x-dev
- 2.5.6
- 2.5.5
- 2.5.4
- 2.5.3
- 2.5.1
- 2.5.0
- 2.4.x-dev
- 2.4.5
- 2.4.4
- 2.4.3
- 2.4.2
- 2.4.1
- 2.4.0
- 2.3.x-dev
- 2.3.9
- 2.3.8
- 2.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15 UTC
README
Modern PHP Testing for everyone
Codeception is a modern full-stack testing framework for PHP. Inspired by BDD, it provides an absolutely new way of writing acceptance, functional and even unit tests. Powered by PHPUnit.
General | Windows | Webdriver |
---|---|---|
Contributions
At Codeception we are glad to receive contributions from the community. If you want to send additions or fixes to the code or the documentation please check the Contributing guide.
At a Glance
Describe what you test and how you test it. Use PHP to write descriptions faster.
Run tests and see what actions were taken and what results were seen.
Sample test
$I->amOnPage('/'); $I->click('Pages'); $I->click('New'); $I->see('New Page'); $I->submitForm('form#new_page', ['title' => 'Movie Review']); $I->see('page created'); // notice generated $I->see('Movie Review','h1'); // head of page of is our title $I->seeInCurrentUrl('pages/movie-review'); // slug is generated $I->seeInDatabase('pages', ['title' => 'Movie Review']); // data is stored in database
For unit testing you can stay on classic PHPUnit tests, as Codeception can run them too.
Installation
Composer
php composer.phar require "codeception/codeception"
Phar
Download codecept.phar
Copy it into your project.
You can also make Codeception an executable and it put it into your $PATH
, for instance:
wget http://codeception.com/codecept.phar
chmod +x codecept.phar
sudo mv codecept.phar /usr/local/bin/codecept
You can then run Codecept in the command line using: codecept bootstrap
, codecept run
, etc
Run CLI utility:
php codecept.phar
See also Installation | QuickStart
Getting Started
After you successfully installed Codeception, run this command:
codecept bootstrap
This will create a default directory structure and default test suites.
Documentation
Documentation is included within the project. Look for it in the 'docs' directory.
License
MIT
(c) Codeception Team 2011-2019