PHPackages                             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. codeception/yii-bridge

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

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

YiiBridge extension

1463.2k↓25.2%PHP

Since Nov 17Pushed 11y ago1 watchersCompare

[ Source](https://github.com/lubobill1990/codeception-yii-bridge)[ Packagist](https://packagist.org/packages/codeception/yii-bridge)[ RSS](/packages/codeception-yii-bridge/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)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**:

```
