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

FriendsOfPHP / PHP-CS-Fixer / 13276 / 8
82%
master: 93%

Build:
Build:
LAST BUILD BRANCH: phpdocAlignFixer
DEFAULT BRANCH: master
Ran 06 Jan 2018 04:22PM UTC
Files 282
Run time 9s
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

06 Jan 2018 03:29PM UTC coverage: 79.201%. Remained the same
COLLECT_COVERAGE=1 SYMFONY_DEPRECATIONS_HELPER=weak

push

travis-ci

keradus
minor #3342 PhpUnitDedicateAssertFixer - Remove unexistent method is_boolean  (carusogabriel)

This PR was merged into the 2.2 branch.

Discussion
----------

PhpUnitDedicateAssertFixer - Remove unexistent method is_boolean

With this PR, I want to propose to removal of `is_boolean` from `PhpUnitDedicateAssertFixer`. As far as I know, `is_bool` does not have an alias in PHP. `is_int` and `is_float` have, but `is_bool` doesn't. As the proposal of `PhpUnitDedicateAssertFixer` is to fix e.g.:
```php
$this->assertTrue(is_string('foo'));
```
to
```php
$this->assertInternalType('string', 'foo');
```
the fixer will never find a
```php
$this->assertTrue(is_boolean(true));
```
I know that `PHPUnit`'s `assertInternalType` method [does support `assertInternalType('boolean', true)`](https://github.com/sebastianbergmann/phpunit/blob/master/src/Framework/Constraint/IsType.php#L119), but the fixer will never find an `is_boolean`.

Commits
-------

5120112f Remove unexistent method is_boolean from Fixer

7410 of 9356 relevant lines covered (79.2%)

25.68 hits per line

Source Files on job 13276.8 (COLLECT_COVERAGE=1 SYMFONY_DEPRECATIONS_HELPER=weak)
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 13276
  • Travis Job 13276.8
  • e585b7e4 on github
  • Prev Job for COLLECT_COVERAGE=1 SYMFONY_DEPRECATIONS_HELPER=weak on 2.2 (#13255.8)
  • Next Job for COLLECT_COVERAGE=1 SYMFONY_DEPRECATIONS_HELPER=weak on 2.2 (#13302.8)
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