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

PHPCSStandards / PHPCSUtils / 291 / 31
98%
develop: 100%

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/actions/upload-pages-artifact-5.0.0
DEFAULT BRANCH: develop
Ran 11 Feb 2020 03:49PM UTC
Files 24
Run time 12s
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

11 Feb 2020 03:31PM UTC coverage: 90.323%. Remained the same
PHPCS_VERSION="dev-master" LINT=1 COVERALLS_VERSION="^1.0"

Pull #82

travis-ci-com

web-flow
FindEndOfStatementTest: simplify the tests

These are the same changes as pulled upstream in squizlabs/PHP_CodeSniffer 2866

* Use the `AbstractMethodUnitTest::getTargetToken()` method instead of doing a `findNext()` with a calculation.
    This makes the `$start` token retrieval more descriptive.
* Assert based on the token pointers, not the sub-array value.
    As for both the "expected" as well as "found" values, the token sub-array is retrieved from the same `$tokens` variable, if the token pointers are the same, the sub-arrays will be too, so doing the comparison based on the sub-array doesn't add any extra value to the test.
    Also: doing an array assertion is more expensive than doing a simple integer based assertion.
* Remove redundant calls to the `getTokens()` method.
Pull Request #82: FindEndOfStatementTest: simplify the tests

2520 of 2790 relevant lines covered (90.32%)

16.35 hits per line

Source Files on job 291.31 (PHPCS_VERSION="dev-master" LINT=1 COVERALLS_VERSION="^1.0")
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 105
  • Travis Job 291.31
  • 27428945 on github
  • Prev Job for PHPCS_VERSION="dev-master" LINT=1 COVERALLS_VERSION="^1.0" on feature/findendofstatement-simplify-tests (#287.31)
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