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

PHPCSStandards / PHP_CodeSniffer / 11826521147
79%

Build:
DEFAULT BRANCH: master
Ran 13 Nov 2024 10:01PM UTC
Jobs 5
Files 309
Run time 1min
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

13 Nov 2024 09:59PM UTC coverage: 77.12%. First build
11826521147

push

github

web-flow
Generators: add initial set of tests (#671)

These new tests safeguard the output generated by the `Text`, `Markdown` and `HTML` doc generators and the logic in the abstract `Generator` class.

**Notes about the setup for these tests**:

These tests use a set of test fixtures specially crafted for these tests.
The use of fixtures means that the tests don't use _real_ documentation as included with the various standards, which is subject to change and would make the tests unstable.

As the test fixtures are set up as an external standard, these tests will not only safeguard that doc generation works as expected, but also that it continues to work with external standards.
This should help prevent issues as previously fixed in a10bea65d and e5bdaad26.

The footer output for the `Markdown` and `HTML` generators contains a date and a PHPCS version nr, which, again, would make the tests unstable. To mitigate this, test double classes are included for these classes, which overload the `printFooter()` methods and replaces the date and PHPCS version number with placeholders for the generic documentation tests.

The _real_ footer is still tested, but via a regex pattern in a separate test in the `MarkdownTest` and `HTMLTest` classes.

Finally, as things were, the tests for `Markdown` and `HTML` would fail on Windows due to the generated output containing mixed line endings in the HTML `<style>` tag and in the code samples for both.

Commit 85b4a9065 previously changed the EOL char used for output to screen to `PHP_EOL`, but these two places were overlooked.
That is now fixed via this commit.

5 of 5 new or added lines in 2 files covered. (100.0%)

23995 of 31114 relevant lines covered (77.12%)

64.78 hits per line

Jobs
ID Job ID Ran Files Coverage
1 os-ubuntu-latest-php-7.2-custom-ini-true - 11826521147.1 13 Nov 2024 10:06PM UTC 0
69.9
GitHub Action Run
2 os-ubuntu-latest-php-5.4-custom-ini-false - 11826521147.2 13 Nov 2024 10:26PM UTC 0
70.91
GitHub Action Run
3 os-windows-latest-php-5.5-custom-ini-false - 11826521147.3 13 Nov 2024 10:02PM UTC 0
1.25
GitHub Action Run
4 os-windows-latest-php-8.4-custom-ini-false - 11826521147.4 13 Nov 2024 10:01PM UTC 0
1.42
GitHub Action Run
5 os-ubuntu-latest-php-8.4-custom-ini-false - 11826521147.5 13 Nov 2024 10:05PM UTC 0
72.44
GitHub Action Run
Source Files on build 11826521147
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #11826521147
  • f9c5f184 on github
  • Prev Build on master (#11826461768)
  • Next Build on master (#11848053529)
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