Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 18, 2024 via composer

codeception/codeception 5.1.0

BDD-style testing framework
Package summary
Share
0
issues
2
licenses
25
BSD-3-Clause
22
MIT
Package created
8 May 2012
Version published
4 Feb 2024
Maintainers
2
Total deps
47
Direct deps
16
License
MIT

Issues

0
This package has no issues

Licenses

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
25 Packages, Including:
nikic/php-parser@v5.0.2
phar-io/manifest@2.0.4
phar-io/version@3.2.1
phpunit/php-code-coverage@11.0.3
phpunit/php-file-iterator@5.0.0
phpunit/php-invoker@5.0.0
phpunit/php-text-template@4.0.0
phpunit/php-timer@7.0.0
phpunit/phpunit@11.1.3
sebastian/cli-parser@3.0.1
sebastian/code-unit@3.0.0
sebastian/code-unit-reverse-lookup@4.0.0
sebastian/comparator@6.0.0
sebastian/complexity@4.0.0
sebastian/diff@6.0.1
sebastian/environment@7.1.0
sebastian/exporter@6.0.1
sebastian/global-state@7.0.1
sebastian/lines-of-code@3.0.0
sebastian/object-enumerator@6.0.0
sebastian/object-reflector@4.0.0
sebastian/recursion-context@6.0.0
sebastian/type@5.0.0
sebastian/version@5.0.0
theseer/tokenizer@1.2.3

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
22 Packages, Including:
behat/gherkin@v4.9.0
codeception/codeception@5.1.0
codeception/lib-asserts@2.1.0
codeception/stub@4.1.3
myclabs/deep-copy@1.11.1
psr/container@2.0.2
psr/event-dispatcher@1.0.0
psy/psysh@v0.12.3
symfony/console@v7.0.7
symfony/css-selector@v7.0.7
symfony/deprecation-contracts@v3.5.0
symfony/event-dispatcher@v7.0.7
symfony/event-dispatcher-contracts@v3.5.0
symfony/finder@v7.0.7
symfony/polyfill-ctype@v1.29.0
symfony/polyfill-intl-grapheme@v1.29.0
symfony/polyfill-intl-normalizer@v1.29.0
symfony/polyfill-mbstring@v1.29.0
symfony/service-contracts@v3.5.0
symfony/string@v7.0.7
symfony/var-dumper@v7.0.7
symfony/yaml@v7.0.7
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

16
All Dependencies CSV
β“˜ This is a list of codeception/codeception 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
behat/gherkinv4.9.073.76 kBMIT
prod
codeception/lib-asserts2.1.07.67 kBMIT
prod
codeception/stub4.1.320.46 kBMIT
prod
phpunit/php-code-coverage11.0.3-BSD-3-Clause
prod
phpunit/php-text-template4.0.07.38 kBBSD-3-Clause
prod
phpunit/php-timer7.0.0-BSD-3-Clause
prod
phpunit/phpunit11.1.3-BSD-3-Clause
prod dev
psy/psyshv0.12.3334.24 kBMIT
prod
sebastian/comparator6.0.019.57 kBBSD-3-Clause
prod
sebastian/diff6.0.1-BSD-3-Clause
prod
symfony/consolev7.0.7-MIT
prod dev
symfony/css-selectorv7.0.7-MIT
prod
symfony/event-dispatcherv7.0.7-MIT
prod dev
symfony/finderv7.0.7-MIT
prod
symfony/var-dumperv7.0.7-MIT
prod dev
symfony/yamlv7.0.7-MIT
prod

Visualizations

Frequently Asked Questions

What does codeception/codeception do?

Codeception is a full-stack testing framework for PHP. Influenced by Behavior-Driven Development (BDD), it offers a unique approach to writing various types of tests, including acceptance, functional, and unit tests. Codeception is designed to describe what is being tested and how it is being tested, enabling developers to write test descriptions efficiently using PHP. The results of those tests are easily observable, indicating what actions were taken and their outcomes.

How do you use codeception/codeception?

Using Codeception is straightforward. To get started, you must first install the package using Composer as follows:

php composer.phar require "codeception/codeception"

The libraries required for specific features of Codeception must also be installed. For instance, to use the PhpBrowser module:

php composer.phar require "codeception/module-phpbrowser"

Once installed, Codeception can be incorporated into your project via its Phar file, which can be downloaded from the official Codeception website. Here's how you can make Codeception executable and move it into your $PATH:

wget https://codeception.com/codecept.phar
chmod +x codecept.phar
sudo mv codecept.phar /usr/local/bin/codecept

After that, you can initialize default settings and suites with:

codecept bootstrap

An example of how you may write a test using Codeception is:

$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

Where are the codeception/codeception docs?

You can find comprehensive Codeception documentation at https://codeception.com/docs/Introduction. Additionally, the documentation source files are available in the repository https://github.com/Codeception/codeception.github.com/tree/master/docs/. Through these resources, users can dive into a more detailed understanding of how Codeception functions, its use cases, and how to effectively implement it in their projects.