You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://libraries.io/github/herloct/codeception-slim-module)
@@ -21,26 +21,43 @@ Via `composer.json`:
21
21
```json
22
22
{
23
23
"require-dev": {
24
-
"herloct/codeception-slim-module": "^1.0"
24
+
"herloct/codeception-slim-module": "^1.1"
25
25
}
26
26
}
27
27
```
28
28
29
29
## Config
30
30
31
-
* container: relative path to file which returns Container.
31
+
Put this on your `codeception.yml`
32
32
33
33
```yaml
34
-
\Herloct\Codeception\Module\Slim:
35
-
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
36
40
```
37
41
38
-
Minimum `container.php` contents.
42
+
Or on your `tests/functional.suite.yml`
43
+
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.
39
56
40
57
```php
41
58
require __DIR__.'/vendor/autoload.php';
42
59
43
-
use Interop\Container\ContainerInterface;
60
+
use Psr\Container\ContainerInterface;
44
61
use Slim\App;
45
62
use Slim\Container;
46
63
@@ -61,8 +78,8 @@ You could use this [Sample Project](https://github.com/herloct/codeception-slim-
61
78
62
79
## API
63
80
64
-
* application - instance of `\Slim\App`
65
-
* container - instance of `\Interop\Container\ContainerInterface`
81
+
* app - instance of `\Slim\App`
82
+
* container - instance of `\Psr\Container\ContainerInterface`
0 commit comments