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

PHPCSStandards / PHP_CodeSniffer / 13319574253
79%

Build:
DEFAULT BRANCH: master
Ran 14 Feb 2025 12:12AM UTC
Jobs 8
Files 309
Run time 15min
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:10AM UTC coverage: 78.531% (+0.008%) from 78.523%
13319574253

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%)

24680 of 31427 relevant lines covered (78.53%)

66.31 hits per line

Jobs
ID Job ID Ran Files Coverage
1 os-ubuntu-latest-php-5.4-custom-ini-false - 13319574253.1 14 Feb 2025 12:39AM UTC 309
72.46
GitHub Action Run
2 os-windows-latest-php-8.4-custom-ini-false - 13319574253.2 14 Feb 2025 12:12AM UTC 309
2.51
GitHub Action Run
3 os-windows-latest-php-5.5-custom-ini-false - 13319574253.3 14 Feb 2025 12:13AM UTC 309
2.23
GitHub Action Run
4 cbf-os-ubuntu-latest-ubuntu-latest-php-5.4-custom-ini-false - 13319574253.4 14 Feb 2025 12:39AM UTC 309
1.28
GitHub Action Run
5 cbf-os-ubuntu-latest-ubuntu-latest-php-7.2-custom-ini-true - 13319574253.5 14 Feb 2025 12:17AM UTC 309
0.73
GitHub Action Run
6 os-ubuntu-latest-php-8.4-custom-ini-false - 13319574253.6 14 Feb 2025 12:16AM UTC 309
73.97
GitHub Action Run
7 os-ubuntu-latest-php-7.2-custom-ini-true - 13319574253.7 14 Feb 2025 12:17AM UTC 309
71.35
GitHub Action Run
8 cbf-os-ubuntu-latest-ubuntu-latest-php-8.4-custom-ini-false - 13319574253.8 14 Feb 2025 12:16AM UTC 309
1.7
GitHub Action Run
Source Files on build 13319574253
  • Tree
  • List 309
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #13319574253
  • a7d77cfe on github
  • Prev Build on master (#13319523826)
  • Next Build on master (#13348994903)
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

© 2025 Coveralls, Inc