Skip to content

Commit a415362

Browse files
author
davert
committed
=auto-updated documentation
1 parent 6e734d0 commit a415362

1 file changed

Lines changed: 40 additions & 1 deletion

File tree

‎docs/05-FunctionalTests.markdown‎

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,21 @@ And execute them with `run`:
7878

7979
Use `--debug` option for more detailed output.
8080

81+
## Error Reporting
82+
83+
By default Codeception uses `E_ALL & ~E_STRICT & ~E_DEPRECATED` error reporting value.
84+
In functional tests you might want to change this values depending on framework's error policy.
85+
The error reporting value can be set at suite configuraion file:
86+
87+
{% highlight yaml %}
88+
class_name: TestGuy
89+
modules:
90+
enabled: [Yii1, TestHelper]
91+
error_level: "E_ALL & ~E_STRICT & ~E_DEPRECATED"
92+
{% endhighlight %}
93+
94+
`error_level` can be set globally in `codeception.yml` file.
95+
8196
## Frameworks
8297

8398
Codeception have integrations for the most popular PHP frameworks.
@@ -99,12 +114,24 @@ modules:
99114

100115
{% endhighlight %}
101116

102-
By default this module will search for Kernel in the `app` directory.
117+
By default this module wilyl search for Kernel in the `app` directory.
103118

104119
The module uses the Symfony Profiler to provide additional information and assertions.
105120

106121
[See the full reference](http://codeception.com/docs/modules/Symfony2)
107122

123+
### Laravel 4
124+
125+
[Laravel](http://codeception.com/docs/modules/Laravel4) module is zero configuration and can be easily set up.
126+
127+
{% highlight yaml %}
128+
yaml
129+
class_name: TestGuy
130+
modules:
131+
enabled: [Laravel4, TestHelper]
132+
133+
{% endhighlight %}
134+
108135
### Yii
109136

110137
By itself Yii framework does not have an engine for functional testing.
@@ -122,6 +149,18 @@ modules:
122149
To avoid common pitfalls we discussed earlier, Codeception provides basic hooks over Yii engine.
123150
Please set them up [following the installation steps in module reference](http://codeception.com/docs/modules/Yii1).
124151

152+
### Zend Framework 2
153+
154+
Use [ZF2](http://codeception.com/docs/modules/ZF2) module to run functional tests inside Zend Framework 2.
155+
156+
{% highlight yaml %}
157+
yaml
158+
class_name: TestGuy
159+
modules:
160+
enabled: [ZF2, TestHelper]
161+
162+
{% endhighlight %}
163+
125164
### Zend Framework 1.x
126165

127166
The module for Zend Framework is highly inspired by ControllerTestCase class, used for functional testing with PHPUnit.

0 commit comments

Comments
 (0)