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

sirbrillig / phpcs-variable-analysis / 5593632289
94%

Build:
DEFAULT BRANCH: 2.x
Ran 19 Jul 2023 12:09AM UTC
Jobs 4
Files 9
Run time 1s
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

pending completion
5593632289

push

github

web-flow
Make test suite compatible with PHPCS 3.8.0 (#304)

As per the deprecation notice being thrown:
> `setSniffProperty: the format of the $settings parameter has changed from (mixed) $value to array('scope' => 'sniff|standard', 'value' => $value). Please update your integration code. See PR #3629 for more information.`

... the format of the `$settings` parameter for the `Ruleset::setSniffProperty()` method has changed to allow PHPCS to prevent notices about dynamic properties.

This commit updates the test suite to allow for both the PHPCS < 3.8.0 as well as the PHPCS 3.8.0+ way of setting properties directly on the Ruleset by adding a helper method to the `BaseTestCase` to set the properties in the correct way depending on the PHPCS version used.

Ref: squizlabs/php_codesniffer 3629

Co-authored-by: jrfnl <jrfnl@users.noreply.github.com>

1718 of 1833 relevant lines covered (93.73%)

128.94 hits per line

Jobs
ID Job ID Ran Files Coverage
1 php-8.2-phpcs-dev-master - 5593632289.1 19 Jul 2023 12:09AM UTC 9
93.09
GitHub Action Run
2 php-7.4-phpcs-3.5.6 - 5593632289.2 19 Jul 2023 12:09AM UTC 9
92.86
GitHub Action Run
3 php-5.4-phpcs-dev-master - 5593632289.3 19 Jul 2023 12:09AM UTC 9
93.13
GitHub Action Run
4 php-5.4-phpcs-3.5.6 - 5593632289.4 19 Jul 2023 12:09AM UTC 9
92.64
GitHub Action Run
Source Files on build 5593632289
  • Tree
  • List 9
  • Changed 9
  • Source Changed 9
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 71d9f671 on github
  • Prev Build on 2.x (#4577291962)
  • Next Build on 2.x (#5593815862)
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

© 2026 Coveralls, Inc