PHPackages                             websupport/codeception-yii-bridge - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. websupport/codeception-yii-bridge

ActivePackage[Testing &amp; Quality](/categories/testing)

websupport/codeception-yii-bridge
=================================

Codeception YiiBridge extension

v5.x-dev(3y ago)04.1k1MITPHPPHP ^8.0

Since Mar 8Pushed 3y ago4 watchersCompare

[ Source](https://github.com/websupport-sk/codeception-yii-bridge)[ Packagist](https://packagist.org/packages/websupport/codeception-yii-bridge)[ RSS](/packages/websupport-codeception-yii-bridge/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependencies (5)Versions (5)Used By (0)

Codeception &lt;=&gt; Yii Bridge
================================

[](#codeception--yii-bridge)

Wrapper classes required to run Yii functional tests with Codeception. Does not provide a smooth integration (yet). For now use for your own pain and risk.

### Concept

[](#concept)

Yii1 framework was not designed for functional testing. This bridge classes include components that override standart Yii components to be testable. The most common issues with Yii functional tests are usage `headers`, `cookies` functions in PHP code, which produce errors on testing. Also usage of `exit` directive might even stop test execution completely.

### Install

[](#install)

- Install [Codeception](http://codeception.com/install) via composer

```
php composer.phar require "codeception/codeception:*"
php composer.phar update

```

- Bootstrap Codeception to `protected/tests`

```
./vendor/bin/codecept bootstrap protected/tests

```

- And set up [Yii1](http://codeception.com/docs/modules/Yii1) module.

**test.php**:

```
