• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Yoast / PHPUnit-Polyfills
96%
3.x: 98%

Build:
Build:
LAST BUILD BRANCH: 4.x
DEFAULT BRANCH: 3.x
Repo Added 17 Nov 2022 01:11PM UTC
Files 33
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH JRF/1.x/add-phpstan
branch: JRF/1.x/add-phpstan
CHANGE BRANCH
x
Reset
  • JRF/1.x/add-phpstan
  • 1.1.0
  • 1.1.1
  • 1.1.2
  • 1.1.3
  • 1.1.4
  • 1.1.5
  • 1.x
  • 2.0.0
  • 2.0.1
  • 2.0.2
  • 2.0.3
  • 2.0.4
  • 2.0.5
  • 2.0/phpunit-10/update-environment-and-ci
  • 2.0/update-readme-changelog
  • 2.x
  • 3.0.0
  • 3.1.0
  • 3.1.1
  • 3.1.2
  • 3.x
  • 4.0.0
  • 4.0/feature/drop-support-for-php-lt-7.1
  • 4.x
  • JRF/2.x/add-phpstan
  • JRF/CS/update-phpcs-ruleset-yoastcs-3.0.0
  • JRF/composer-add-security-link
  • JRF/composer-dont-write-lock-file
  • JRF/composer-tweaks
  • JRF/dependabot-update-config
  • JRF/docs-various-improvements
  • JRF/docs-various-tweaks
  • JRF/feature/remove-dependabot-reviewers
  • JRF/ghactions-add-merge-conflict-check
  • JRF/ghactions-php-8.3-update
  • JRF/ghactions-remove-phpunit-10-trial
  • JRF/ghactions-switch-to-coveralls-reporter
  • JRF/ghactions/dont-fail-on-8.4
  • JRF/gitattributes-minor-tweaks
  • JRF/release-checklist-update
  • JRF/removed-unused-use-statement
  • JRF/update-yoastcs-3.2.0
  • JRF/various-minor-ci-tweaks
  • TEMP/123p0712p37
  • TEMP/2123-testing
  • TEMP/21328039
  • TEMP/2183621p
  • TEMP/test-123
  • TESTING/2.x
  • WIP/3.x
  • dependabot/github_actions/1.x/DavidAnson/markdownlint-cli2-action-16
  • dependabot/github_actions/1.x/DavidAnson/markdownlint-cli2-action-17
  • dependabot/github_actions/1.x/DavidAnson/markdownlint-cli2-action-18
  • dependabot/github_actions/1.x/DavidAnson/markdownlint-cli2-action-19
  • dependabot/github_actions/1.x/DavidAnson/markdownlint-cli2-action-20
  • dependabot/github_actions/1.x/DavidAnson/markdownlint-cli2-action-21
  • dependabot/github_actions/1.x/DavidAnson/markdownlint-cli2-action-22
  • dependabot/github_actions/1.x/actions/checkout-5
  • dependabot/github_actions/1.x/actions/checkout-6
  • dependabot/github_actions/1.x/actions/setup-node-4
  • dependabot/github_actions/1.x/actions/setup-node-5
  • dependabot/github_actions/1.x/actions/setup-node-6
  • dependabot/github_actions/1.x/ramsey/composer-install-3
  • dependabot/github_actions/1.x/xt0rted/markdownlint-problem-matcher-3
  • dependabot/github_actions/actions/checkout-4
  • documentation/custom-approach-expectdeprecations
  • feature/1.x-ghactions-use-nightly-for-php-next
  • feature/1.x-minor-updates-for-start-of-3.x-branch
  • feature/1.x-php-8.4-restrict-test
  • feature/1.x-readme-update-for-polyfills-3.x
  • feature/1.x/changelog-v1.1.4
  • feature/1.x/changelog-v1.1.5
  • feature/2.x-changelog-2.0.2
  • feature/2.x-readme-update-links-to-docs
  • feature/2.x/add-attributes-for-annotations
  • feature/2.x/changelog-v2.0.4
  • feature/2.x/changelog-v2.0.5
  • feature/2.x/ghactions-stop-testing-against-phpunit-dev
  • feature/2.x/readme-updates
  • feature/2.x/tests-minor-fix
  • feature/214-support-phpunit-11.5.0
  • feature/3.x/allow-for-phpunit-11
  • feature/3.x/assertislist-sync-error-message-with-upstream
  • feature/3.x/changelog-v3.1.2
  • feature/3.x/drop-support-for-assertattributehelper
  • feature/3.x/drop-support-for-php-7.0
  • feature/3.x/drop-support-for-phpunit-lt-64
  • feature/3.x/ghactions-stop-testing-against-phpunit-dev
  • feature/3.x/new-assertarraywithlistkeys-polyfill-trait
  • feature/3.x/new-assertobjectnotequals-polyfill-trait
  • feature/3.x/new-expectuserdeprecation-polyfill-trait
  • feature/3.x/sync-with-phpunit-11
  • feature/4.x/changelog-v4.0.0
  • feature/README-fix-broken-links
  • feature/add-pr-template
  • feature/assertContainsNotOnlyInstancesOf-fix-param-name
  • feature/assertistype-extra-test-closed-resource
  • feature/assertistypetest-remove-redundant-comment
  • feature/assertobjectequalstests-fix-php-8.4-deprecation
  • feature/autoload-add-minor-extra-defensive-coding
  • feature/changelog-1.1.0
  • feature/changelog-1.1.1-release
  • feature/changelog-1.1.3
  • feature/changelog-2.0.1-release
  • feature/changelog-2.0.3
  • feature/changelog-3.1.0
  • feature/changelog-3.1.1
  • feature/composer-ci-allow-for-phpunit-12
  • feature/composer-lint-scripts-cleanup
  • feature/composer-update-dependencies
  • feature/consistently-use-since-tags
  • feature/cs-minor-fixes
  • feature/cs-minor-ruleset-cleanup
  • feature/dependabot-remove-composer
  • feature/drop-support-for-phpunit-lt-7.5-1
  • feature/equaltospecializations-minor-clean-up
  • feature/fix-phpstan-config
  • feature/fix-runtime-deprecations-php-8.5
  • feature/ghactions-add-actionlint
  • feature/ghactions-add-phar-testing-job
  • feature/ghactions-all-jobs-should-have-name
  • feature/ghactions-do-not-persist-credentials
  • feature/ghactions-fix-branch-selection
  • feature/ghactions-fix-more-rate-limiting
  • feature/ghactions-fix-phpunit-dev-test-run
  • feature/ghactions-improve-dont-run-cronjobs-on-forks-condition
  • feature/ghactions-make-the-test-workflow-more-robust
  • feature/ghactions-minor-tweak
  • feature/ghactions-php-nightly-is-now-8.6
  • feature/ghactions-pin-action-runners
  • feature/ghactions-reduce-rate-limit-issues
  • feature/ghactions-reinstate-token-for-setup-php
  • feature/ghactions-show-startup-errors
  • feature/ghactions-test-against-phpunit-10-php-8.4
  • feature/ghactions-update-for-setup-php-2.35.0
  • feature/ghactions-update-markdown-settings
  • feature/ghactions-update-markdownlint
  • feature/ghactions-use-phpstan-1.0
  • feature/ghactions-workflow-docs
  • feature/improve-php-8.4-workaround-implicitly-nullable
  • feature/markdown-fixes
  • feature/minor-updates-for-4.x
  • feature/modernize-const-visibility
  • feature/modernize-type-declarations
  • feature/partially-revert-URL-changes
  • feature/phpcs-fix-exclusions-for-4.x
  • feature/phpcs-ignore-one-rule
  • feature/phpstan-2.0-update
  • feature/phpstan-config-minor-simplification
  • feature/phpstan-fix-config
  • feature/phpunit-9.6.11-add-assertobjecthaspropertytrait
  • feature/phpunit-config-fix-typo
  • feature/phpunit-rename-config-file
  • feature/readme-improve-assertistype-table-format
  • feature/readme-minor-fixes
  • feature/readme-update-badges
  • feature/readme-update-links-to-phpunit-docs
  • feature/release-version-3.0
  • feature/remark-link-check-tweak
  • feature/remarklint-ignore-release-compare-links
  • feature/support-phpunit-8.5.38-9.6.19
  • feature/support-phpunit-8.5.38-9.6.19_-10.5.17
  • feature/test-docs-minor-update
  • feature/tweak-markdown-workflow
  • feature/update-for-changed-message-format
  • feature/update-xtestcasetest
  • feature/work-round-phpcs-bug
  • main

13 Jul 2024 09:33PM UTC coverage: 96.408%. Remained the same
9923010789

Pull #175

github

jrfnl
CI/QA: add PHPStan

PHPStan is a good addition to the QA toolkit and with improvements PHPStan has made over the years is now a viable tool for us to use (previously it would give way too many false positives).

This commit:
* Adds a separate job to the `cs` workflow in GH Actions.
    Notes:
    - I've chosen **not** to add PHPStan to the Composer dependencies for two reasons:
        1. It doesn't allow for installation on PHP < 7.2, which would break/block the `composer install` for the test runs.
        2. It would potentially add dependencies which could conflict/cause problems for our test runs due to those defining token constants too.
            _Note: this does not seem to be a problem with the latest versions anymore as the Composer package ships a PHAR file under the hood._
    - We could potentially use [Phive](https://phar.io/) to still have a setup which can be used locally, but just running locally from a PHPStan PHAR file should work just fine.
    - For CI, PHPStan will be installed as a PHAR file by `setup-php` now.
        This does carry a risk _if_ PHPStan would make breaking changes or if a new release adds rules for the levels being scanned as, in that case, builds could unexpectedly start failing.
        The version `setup-php` installs could be hard-coded to the current release `1.11.7`, but that adds an additional maintenance burden of having to keep updating the version as PHPStan releases pretty often.
        So, for now, I've elected to run the risk of random failures. If and when those start happening, we can re-evaluate.
    - The PHP version for the CI run is set to PHP 7.4 to prevent PHPStan throwing some errors/notices related to the outdated PHPUnit version(s) being used.
* Adds a configuration file for PHPStan.
    Notes:
    - The codebase is "clean", so setting scan level to 9 (highest possible).
    - Two files need to be excluded as they contain (non-)issues which PHPStan cannot work around and which prevent... (continued)
Pull Request #175: CI/QA: add PHPStan

671 of 696 relevant lines covered (96.41%)

96.1 hits per line

Relevant lines Covered
Build:
Build:
696 RELEVANT LINES 671 COVERED LINES
96.1 HITS PER LINE
Source Files on JRF/1.x/add-phpstan
  • Tree
  • List 41
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
9923010789 JRF/1.x/add-phpstan CI/QA: add PHPStan PHPStan is a good addition to the QA toolkit and with improvements PHPStan has made over the years is now a viable tool for us to use (previously it would give way too many false positives). This commit: * Adds a separate job ... Pull #175 13 Jul 2024 09:33PM UTC jrfnl github
96.41
9922992689 JRF/1.x/add-phpstan CI/QA: add phpstan PHPStan is a good addition to the QA toolkit and with improvements PHPStan has made over the years is now a viable tool for us to use (previously it would give way too many false positives). This commit: * Adds a separate job ... push 13 Jul 2024 09:31PM UTC jrfnl github
96.41
See All Builds (748)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc