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

FriendsOfPHP / PHP-CS-Fixer / 15436 / 6
93%
master: 93%

Build:
DEFAULT BRANCH: master
Ran 31 May 2018 09:59PM UTC
Files 362
Run time 31s
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

31 May 2018 09:39PM UTC coverage: 80.777% (-0.4%) from 81.194%
COLLECT_COVERAGE=1

push

travis-ci

keradus
feature #3476 Add PhpUnitTestCaseStaticMethodCallsFixer (Slamdunk, keradus)

This PR was squashed before being merged into the 2.12-dev branch (closes #3476).

Discussion
----------

Add PhpUnitTestCaseStaticMethodCallsFixer

```diff
 class MyTest extends \PHPUnit_Framework_TestCase
 {
     public function testMe()
     {
-        $this->assertSame(1, 2);
+        static::assertSame(1, 2);
     }
 }
```

- [x] Convert `PHPUnit\Framework\Assert` static methods
- [x] Convert `PHPUnit\Framework\TestCase` static methods
- [x] Adapt `PhpUnitStrictFixer` to check for `self::` and `static::` calls too: https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/3477
- [x] Adapt `PhpUnitDedicateAssertFixer` to check for `self::` and `static::` calls too: https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/3478
- [x] Adapt `PhpUnitConstructFixer` to check for `self::` and `static::` calls too: https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/3479
- [x] Add to `.php_cs.dist` with `$this->` syntax: only after review

Commits
-------

3cca45ac Add PhpUnitTestCaseStaticMethodCallsFixer

11165 of 13822 relevant lines covered (80.78%)

34.14 hits per line

Source Files on job 15436.6 (COLLECT_COVERAGE=1)
  • Tree
  • List 0
  • Changed 59
  • Source Changed 46
  • Coverage Changed 56
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 14374
  • Travis Job 15436.6
  • efd1b8ad on github
  • Prev Job for COLLECT_COVERAGE=1 on master (#15193.5)
  • Next Job for COLLECT_COVERAGE=1 on master (#15464.6)
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