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

FriendsOfPHP / PHP-CS-Fixer / 15436
93%

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

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

Jobs
ID Job ID Ran Files Coverage
6 15436.6 (COLLECT_COVERAGE=1) 31 May 2018 09:51PM UTC 0
80.78
Travis Job 15436.6
Source Files on build 15436
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #15436
  • efd1b8ad on github
  • Prev Build on master (#15193)
  • Next Build on master (#15464)
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