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

FriendsOfPHP / PHP-CS-Fixer / 10523 / 1
82%
master: 93%

Build:
Build:
LAST BUILD BRANCH: phpdocAlignFixer
DEFAULT BRANCH: master
Ran 14 Jun 2017 07:35AM UTC
Files 269
Run time 11s
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

14 Jun 2017 07:29AM UTC coverage: 76.329%. Remained the same
DEPLOY=yes TASK_TESTS_COVERAGE=1

push

travis-ci

keradus
minor #2850 ReadmeCommandTest - Prevent diff output (julienfalque)

This PR was merged into the 2.2 branch.

Discussion
----------

ReadmeCommandTest - Prevent diff output

When the README file is not up-to-date, the test will output a very long diff. This is annoying for lazy devs like me that don't want to scroll up to see if other tests failed too 😁. Furthermore, the diff isn't needed as whatever is wrong in the file, it can (should!) be fixed by running the command to regenerate it, which will be easier to spot:

**before**
```
1) PhpCsFixer\Tests\Console\Command\ReadmeCommandTest::testIfReadmeFileIsCorrect
README.rst file is not up to date! Do not modify it manually! Regenerate readme with command: `php php-cs-fixer readme > README.rst`.
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@

[...]

 Fixers
 ~~~~~~

 A *fixer* is a class that tries to fix one CS issue (a ``Fixer`` class must
 implement ``FixerInterface``).

 Configs
 ~~~~~~~

 A *config* knows about the CS rules and the files and directories that must be
 scanned by the tool when run in the directory of your project. It is useful for
 projects that follow a well-known directory structures (like for Symfony
 projects for instance).

 .. _php-cs-fixer.phar: http://cs.sensiolabs.org/download/php-cs-fixer-v2.phar
 .. _Atom:              https://github.com/Glavin001/atom-beautify
 .. _NetBeans:          http://plugins.netbeans.org/plugin/49042/php-cs-fixer
 .. _PhpStorm:          https://medium.com/@valeryan/how-to-configure-phpstorm-to-use-php-cs-fixer-1844991e521f
 .. _Sublime Text:      https://github.com/benmatselby/sublime-phpcs
 .. _Vim:               https://github.com/stephpy/vim-php-cs-fixer
 .. _contribute:        https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/master/CONTRIBUTING.md
```

**after**
```
1) PhpCsFixer\Tests\Console\Command\ReadmeCommandTest::testIfReadmeFileIsCorrect
README.rst file is not up to date! Do not modify it manually! Regenerate readme with command: `php php-cs-fixer readme > README.rst`.
Failed asserting that false is true.
```

Commits
-------

3204a070 Prevent diff output for README test

6923 of 9070 relevant lines covered (76.33%)

24.31 hits per line

Source Files on job 10523.1 (DEPLOY=yes TASK_TESTS_COVERAGE=1)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 10523
  • Travis Job 10523.1
  • 3ff64c33 on github
  • Prev Job for DEPLOY=yes TASK_TESTS_COVERAGE=1 on 2.2 (#10521.1)
  • Next Job for DEPLOY=yes TASK_TESTS_COVERAGE=1 on 2.2 (#10524.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc