File tree 1 file changed +36
-0
lines changed
1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change @@ -94,3 +94,39 @@ To perform framework-specific checks, include also this file:
94
94
```
95
95
96
96
</details >
97
+
98
+
99
+ ## Codeception parameters
100
+
101
+ This extension works well with [ Codeception] ( https://github.com/Codeception/Codeception ) too.
102
+
103
+ [ Unit tests] ( https://codeception.com/docs/05-UnitTests ) are already recognised by default;
104
+ [ Functional tests] ( https://codeception.com/docs/04-FunctionalTests ) and
105
+ [ Acceptance tests] ( https://codeception.com/docs/03-AcceptanceTests ) instead have to be configured
106
+ manually since assertion classes are generated at runtime with different namespaces and class names.
107
+
108
+ Here's an example configuration:
109
+
110
+ ```
111
+ services:
112
+ -
113
+ class: PHPStan\Type\PHPUnit\Assert\AssertMethodTypeSpecifyingExtension
114
+ arguments:
115
+ classWithAssertionMethods: My\CustomNamespace\_support\FunctionalTester
116
+ tags:
117
+ - phpstan.typeSpecifier.methodTypeSpecifyingExtension
118
+ -
119
+ class: PHPStan\Type\PHPUnit\Assert\AssertStaticMethodTypeSpecifyingExtension
120
+ arguments:
121
+ classWithAssertionMethods: My\CustomNamespace\_support\FunctionalTester
122
+ tags:
123
+ - phpstan.typeSpecifier.staticMethodTypeSpecifyingExtension
124
+
125
+ parameters:
126
+ earlyTerminatingMethodCalls:
127
+ My\CustomNamespace\_support\FunctionalTester:
128
+ - fail
129
+ Codeception\Scenario:
130
+ - incomplete
131
+ - skip
132
+ ```
You can’t perform that action at this time.
0 commit comments