This extension provides a `Codeception` mail solution for Yii 2. It includes some classes that are useful
This extension provides [Codeception](http://codeception.com/) integration for the Yii Framework 2.0.
for unit-testing (```TestCase```) or for codeception page-objects (```BasePage```).
When using codeception page-objects they have some similar code, this code was extracted and put into the ```BasePage```
It provides classes that help with testing with codeception:
class to reduce code duplication. Simply extend your page object from this class, like it is done in ```yii2-basic``` and
```yii2-advanced``` boilerplates.
For unit testing there is a ```TestCase``` class which holds some common features like application creation before each test
- a base class for unit-tests: `yii\codeception\TestCase
and application destroy after each test. You can configure your application by this class. ```TestCase``` is extended from ```PHPUnit_Framework_TestCase``` so all
- a base class for codeception page-objects: `yii\codeception\BasePage`.
methods and assertions are available.
- a solution for testing emails
Installation
------------
The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
Then run command ```php codecept.phar run --debug unit/SomeDebugTest``` (Codeception also available through composer) and you will see in output:
Then run command `php codecept.phar run --debug unit/SomeDebugTest` and you will see in output:
```html
```html
some my string
some string
Array
Array
(
(
@ -104,25 +149,4 @@ Then run command ```php codecept.phar run --debug unit/SomeDebugTest``` (Codecep
```
```
For further instructions refer to the testing section in the [Yii Definitive Guide](https://github.com/yiisoft/yii2/blob/master/docs/guide/testing.md).
For further instructions refer to the related section in the Yii Definitive Guide (https://github.com/yiisoft/yii2/blob/master/docs/guide/testing.md).
Installation
------------
The preferred way to install this extension is through [composer](http://getcomposer.org/download/).