Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5af462c

Browse files
committed
Add README how-to for Codeception
1 parent c2975d7 commit 5af462c

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

‎README.md‎

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,39 @@ To perform framework-specific checks, include also this file:
9494
```
9595

9696
</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+
```

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /