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

PHPCSStandards / PHPCSUtils / 291
98%
develop: 100%

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/action-runners-c4b2a15d30
DEFAULT BRANCH: develop
Ran 11 Feb 2020 03:47PM UTC
Jobs 4
Files 24
Run time 2min
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
291

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

2290 of 2344 relevant lines covered (97.7%)

69.97 hits per line

Jobs
ID Job ID Ran Files Coverage
29 291.29 (PHPCS_VERSION="dev-master" LINT=1 COVERALLS_VERSION="^2.0") 11 Feb 2020 03:46PM UTC 0
91.1
Travis Job 291.29
30 291.30 (PHPCS_VERSION="2.9.2" COVERALLS_VERSION="^2.0") 11 Feb 2020 03:47PM UTC 0
95.93
Travis Job 291.30
31 291.31 (PHPCS_VERSION="dev-master" LINT=1 COVERALLS_VERSION="^1.0") 11 Feb 2020 03:48PM UTC 0
90.32
Travis Job 291.31
32 291.32 (PHPCS_VERSION="2.6.0" COVERALLS_VERSION="^1.0") 11 Feb 2020 03:49PM UTC 0
95.41
Travis Job 291.32
Source Files on build 291
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #291
  • Pull Request #82
  • PR Base - develop (#287)
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