Skip to content

Commit 8588ed8

Browse files
committed
Add more detailed example.
1 parent 258c4ea commit 8588ed8

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed

README.md

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,31 @@ Via `composer.json`:
2828

2929
## Config
3030

31-
Put this on your `codeception.yml`'s `modules.config`, or on your `tests/functional.suite.yml`'s
32-
`modules.enabled`.
31+
Put this on your `codeception.yml`
3332

3433
```yaml
35-
\Herloct\Codeception\Module\Slim:
36-
container: path/to/container.php
34+
modules:
35+
config:
36+
\Herloct\Codeception\Module\Slim:
37+
container: path/to/container.php
38+
REST:
39+
depends: \Herloct\Codeception\Module\Slim
3740
```
3841
39-
The `container` properties is a relative path to file which returns your App's Container.
42+
Or on your `tests/functional.suite.yml`
4043

41-
Minimum `container.php` contents.
44+
```yaml
45+
modules:
46+
enabled:
47+
- \Helper\Functional
48+
- \Herloct\Codeception\Module\Slim:
49+
container: path/to/container.php
50+
- REST:
51+
depends: \Herloct\Codeception\Module\Slim
52+
```
53+
54+
The `container` properties is a relative path to file which returns your App's Container.
55+
Here is the minimum `container.php` contents.
4256

4357
```php
4458
require __DIR__.'/vendor/autoload.php';

0 commit comments

Comments
 (0)