From 972bca31a601d5feb5f84892386833b774cbdfcc Mon Sep 17 00:00:00 2001 From: sorge-it <3419073+sorge-it@users.noreply.github.com> Date: Mon, 23 Nov 2026 14:52:15 +0100 Subject: [PATCH] chore: meet the standard setup of a public repo, and correct the README (PHTML-3) CI on PHP 8.3 to 8.5 and macOS, 100% coverage, weekly mutation, Package and Workflows jobs, pinned actions and images, Dependabot. Community files in .github. README: contents, scope, sourced comparison, support, author; requirements, fragment parsing and chains corrected. --- .gitattributes | 4 +- .../CODE_OF_CONDUCT.md | 0 .github/CONTRIBUTING.md | 121 + .github/PULL_REQUEST_TEMPLATE.md | 5 - SECURITY.md => .github/SECURITY.md | 0 .github/dependabot.yml | 28 + .github/docker/actionlint/Dockerfile | 3 + .github/docker/zizmor/Dockerfile | 2 + .github/pull_request_template.md | 12 + .github/workflows/mutation.yml | 42 + .github/workflows/tests.yml | 161 +- CHANGELOG.md | 52 +- CONTRIBUTING.md | 39 - LICENSE.md => LICENSE | 0 README.md | 172 +- composer.json | 22 +- composer.lock | 2755 ++++++++++------- context7.json | 6 +- demo/Dockerfile | 9 +- demo/app/social.php | 21 +- demo/demo.tape | 21 +- demo/output/demo.gif | Bin 289422 -> 270863 bytes demo/output/social.png | Bin 117854 -> 142705 bytes demo/social.tape | 9 +- phpunit.xml | 5 + .../phpunit-pest-html-assertions/SKILL.md | 28 +- src/Pest/Expectations.php | 2 +- tests/PHPStan/ClassAsStringRuleTest.php | 12 + tests/PHPStan/data/tests/ClassChecks.php | 8 +- tests/PHPStan/data/tests/StringChecks.php | 6 +- tests/PHPUnit/AssertsHtmlTest.php | 84 + tests/PHPUnit/HtmlTest.php | 91 + tests/Pest/ExpectationsTest.php | 10 + tests/Rector/CrawlerToHtmlRectorTest.php | 38 + .../Rector/Fixture/leaves_other_forms.php.inc | 23 +- type-coverage.xml | 13 + 36 files changed, 2441 insertions(+), 1363 deletions(-) rename CODE_OF_CONDUCT.md => .github/CODE_OF_CONDUCT.md (100%) create mode 100644 .github/CONTRIBUTING.md delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md rename SECURITY.md => .github/SECURITY.md (100%) create mode 100644 .github/dependabot.yml create mode 100644 .github/docker/actionlint/Dockerfile create mode 100644 .github/docker/zizmor/Dockerfile create mode 100644 .github/pull_request_template.md create mode 100644 .github/workflows/mutation.yml delete mode 100644 CONTRIBUTING.md rename LICENSE.md => LICENSE (100%) create mode 100644 type-coverage.xml diff --git a/.gitattributes b/.gitattributes index 8f6df29..310a7be 100644 --- a/.gitattributes +++ b/.gitattributes @@ -4,9 +4,6 @@ /.github export-ignore /.gitattributes export-ignore /.gitignore export-ignore -/CODE_OF_CONDUCT.md export-ignore -/CONTRIBUTING.md export-ignore -/SECURITY.md export-ignore /composer.lock export-ignore /context7.json export-ignore /demo export-ignore @@ -17,3 +14,4 @@ /rector.php export-ignore /stubs export-ignore /tests export-ignore +/type-coverage.xml export-ignore diff --git a/CODE_OF_CONDUCT.md b/.github/CODE_OF_CONDUCT.md similarity index 100% rename from CODE_OF_CONDUCT.md rename to .github/CODE_OF_CONDUCT.md diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md new file mode 100644 index 0000000..30268df --- /dev/null +++ b/.github/CONTRIBUTING.md @@ -0,0 +1,121 @@ +# Contributing + +Pull requests are welcome. The issue tracker is closed: report a bug as a pull request with a +failing test; a fix is welcome but not required. Report a vulnerability privately instead; see the +[security policy](https://github.com/sorge-it/phpunit-pest-html-assertions/security/policy). +Everyone who takes part follows the +[Code of Conduct](https://github.com/sorge-it/phpunit-pest-html-assertions/blob/main/.github/CODE_OF_CONDUCT.md). + +## Scope + +Read [When to use it and when not to](https://github.com/sorge-it/phpunit-pest-html-assertions#when-to-use-it-and-when-not-to) +and [Scope](https://github.com/sorge-it/phpunit-pest-html-assertions#scope) in the README first. A +feature outside the scope, such as a check of the DOM after a script ran, will not be merged. + +- There is no `tests/Scope/out.php` with a guard for each `out` row: this package copies no + reference implementation, so no out-of-scope behavior can come back from one. The row on + `