Coveralls logob
Coveralls logo
  • Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

PHPCSStandards / PHPCSUtils / 291 / 29

DEFAULT BRANCH: develop
Build:
LAST BUILD BRANCH: stable
Ran 11 Feb 2020 03:47PM UTC
Files 24
Run time 4s
Badge
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 - 15:31 coverage: 91.096%. Remained the same
PHPCS_VERSION="dev-master" LINT=1 COVERALLS_VERSION="^2.0"

Pull #82

travis-ci-com

9181eb84f9c35729a3bad740fb7f9d93?size=18&default=identiconweb-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

2169 of 2381 relevant lines covered (91.1%)

16.58 hits per line

Source Files on job 291.29 (PHPCS_VERSION="dev-master" LINT=1 COVERALLS_VERSION="^2.0")
  • Tree
  • List 24
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 105
  • Travis Job 291.29
  • 27428945 on github
  • Prev Job for PHPCS_VERSION="dev-master" LINT=1 COVERALLS_VERSION="^2.0" on feature/findendofstatement-simplify-tests (#287.29)
Troubleshooting · Open an Issue · Sales · Support · ENTERPRISE · CAREERS · STATUS
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2023 Coveralls, Inc