Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new Testing section to the Yii3 definitive guide, covering the main testing levels and complementary quality tools to help keep applications and packages safe to change.
Changes:
- Introduces new testing guide pages: overview, environment setup, unit, functional, and end-to-end testing.
- Adds guidance on static analysis and mutation testing (Psalm/PHPStan + Infection).
- Updates the guide index to link to the new testing pages (replacing TODO entries).
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/guide/testing/overview.md | Introduces testing levels and guidance on choosing the smallest effective test type. |
| src/guide/testing/environment-setup.md | Describes test environment isolation and state reset strategies. |
| src/guide/testing/unit.md | Adds unit testing principles and a PHPUnit example. |
| src/guide/testing/functional.md | Documents PSR-7/PSR-17 functional testing flow using Yiisoft\Yii\Http\Application. |
| src/guide/testing/end-to-end.md | Adds end-to-end testing guidance and environment considerations. |
| src/guide/testing/quality-tools.md | Adds static analysis and mutation testing guidance and when to run them. |
| src/guide/index.md | Updates the Testing section links to point to the new pages. |
Comment on lines
+30
to
+32
| $slug = $generator->generate('Hello, Yii 3!'); | ||
|
|
||
| self::assertSame('hello-yii-3', $slug); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #265.
Adds the testing guide section with pages for overview, environment setup, unit tests, functional tests, end-to-end tests, and static analysis with mutation testing.
Functional testing guidance uses PSR-7 requests as input and PSR-7 responses as output, without depending on a specific test framework.