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

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

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

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

Jobs
ID Job ID Ran Files Coverage
1 10523.1 (DEPLOY=yes TASK_TESTS_COVERAGE=1) 14 Jun 2017 07:31AM UTC 0
76.33
Travis Job 10523.1
Source Files on build 10523
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #10523
  • 3ff64c33 on github
  • Prev Build on 2.2 (#10521)
  • Next Build on 2.2 (#10524)
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