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

PHPCSStandards / PHP_CodeSniffer / 13319598613
78%
master: 79%

Build:
Build:
LAST BUILD BRANCH: 4.x
DEFAULT BRANCH: master
Ran 14 Feb 2025 12:13AM UTC
Jobs 8
Files 262
Run time 24min
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 Feb 2025 12:12AM UTC coverage: 77.282% (+0.01%) from 77.271%
13319598613

push

github

jrfnl
Generators: add tests covering handling of invalid docs

This adds another set of dedicated tests to safeguard how XML docs which don't follow the specification are handled.

This initial set of tests for this documents the current behaviour [*]. This behaviour may not always be the desired behaviour, in which case, this will be fixed in follow-up commits.

To get these tests up and running, the following fatal errors needed to be fixed:

* Fatal error when a code comparison only contains a single code element:
    ```
    Fatal error: Uncaught Error: Call to a member function getAttribute() on null in path/to/PHP_CodeSniffer/src/Generators/Markdown.php:253
    Stack trace:
    #0 path/to/PHP_CodeSniffer/src/Generators/Markdown.php(139): PHP_CodeSniffer\Generators\Markdown->getFormattedCodeComparisonBlock(Object(DOMElement))
    #1 path/to/PHP_CodeSniffer/src/Generators/Markdown.php(39): PHP_CodeSniffer\Generators\Markdown->processSniff(Object(DOMElement))
    #2 path/to/PHP_CodeSniffer/src/Runner.php(99): PHP_CodeSniffer\Generators\Markdown->generate()
    #3 path/to/PHP_CodeSniffer/bin/phpcs(14): PHP_CodeSniffer\Runner->runPHPCS()
    #4 {main}
      thrown in path/to/PHP_CodeSniffer/src/Generators/Markdown.php on line 253
    ```

* Fatal error when a code element contains no textual content:
    ```
    Fatal error: Uncaught Error: Call to a member function getAttribute() on null in path/to/PHP_CodeSniffer/src/Generators/Markdown.php:246
    Stack trace:
    #0 path/to/PHP_CodeSniffer/src/Generators/Markdown.php(139): PHP_CodeSniffer\Generators\Markdown->getFormattedCodeComparisonBlock(Object(DOMElement))
    #1 path/to/PHP_CodeSniffer/src/Generators/Markdown.php(39): PHP_CodeSniffer\Generators\Markdown->processSniff(Object(DOMElement))
    #2 path/to/PHP_CodeSniffer/src/Runner.php(99): PHP_CodeSniffer\Generators\Markdown->generate()
    #3 path/to/PHP_CodeSniffer/bin/phpcs(14): PHP_CodeSniffer\Runner->runPHPCS()
    #4 {main}
      thrown in path... (continued)

27 of 27 new or added lines in 3 files covered. (100.0%)

19132 of 24756 relevant lines covered (77.28%)

76.77 hits per line

Jobs
ID Job ID Ran Files Coverage
1 os-windows-latest-php-8.4-custom-ini-false - 13319598613.1 14 Feb 2025 12:13AM UTC 262
2.64
GitHub Action Run
2 cbf-os-ubuntu-latest-ubuntu-latest-php-8.4-custom-ini-false - 13319598613.2 14 Feb 2025 12:19AM UTC 262
1.9
GitHub Action Run
3 os-ubuntu-latest-php-8.4-custom-ini-false - 13319598613.3 14 Feb 2025 12:19AM UTC 262
75.78
GitHub Action Run
4 os-windows-latest-php-7.2-custom-ini-false - 13319598613.4 14 Feb 2025 12:13AM UTC 262
2.11
GitHub Action Run
5 cbf-os-ubuntu-latest-ubuntu-latest-php-8.1-custom-ini-true - 13319598613.5 14 Feb 2025 12:18AM UTC 262
1.9
GitHub Action Run
6 cbf-os-ubuntu-latest-ubuntu-latest-php-7.2-custom-ini-false - 13319598613.6 14 Feb 2025 12:20AM UTC 262
0.82
GitHub Action Run
7 os-ubuntu-latest-php-7.2-custom-ini-false - 13319598613.7 14 Feb 2025 12:20AM UTC 262
73.61
GitHub Action Run
8 os-ubuntu-latest-php-8.1-custom-ini-true - 13319598613.8 14 Feb 2025 12:18AM UTC 262
75.8
GitHub Action Run
Source Files on build 13319598613
  • Tree
  • List 262
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #13319598613
  • 3a3b962c on github
  • Prev Build on 4.0 (#13319545565)
  • Next Build on 4.0 (#13349026013)
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