FreshRSS/tests
Alexandre Alapetite a80a5f48a1
Pass PHPStan level 8 (#5946)
* Pass PHPStan level 8
And prepare for PHPStan level 9 https://phpstan.org/user-guide/rule-levels

* Revert wrong replace in comment

* Fix PHPStan level 8

* Update PHPStan and other dev dependencies

* Remove obsolete comment

* noVariableVariables and towards bleedingEdge
https://github.com/phpstan/phpstan-strict-rules
https://phpstan.org/blog/what-is-bleeding-edge

* More bleedingEdge

* A bit more PHPStan level 9

* More PHPStan level 9

* Prepare for booleansInConditions
Ignore int and null

* Revert wrong line

* More fixes

* Fix keep_max_n_unread

* Stricter attribute functions

* Stricter callHooks and more PHPStan level 9

* More typing

* A tiny more
2023-12-18 17:59:16 +01:00
..
app Add filter actions (auto mark read) at category and global levels (#5942) 2023-12-15 23:04:29 +01:00
cli/i18n Use strict_types (#5830) 2023-11-16 22:43:00 +01:00
fixtures Use strict_types (#5830) 2023-11-16 22:43:00 +01:00
lib Use strict_types (#5830) 2023-11-16 22:43:00 +01:00
.gitignore gitignore phpunit.phar (#2868) 2020-04-01 02:08:25 +02:00
README.md tests: add shellchecks and shfmt to README (#2458) 2019-07-24 05:26:51 +02:00
bootstrap.php Use strict_types (#5830) 2023-11-16 22:43:00 +01:00
phpstan-next.txt Pass PHPStan level 8 (#5946) 2023-12-18 17:59:16 +01:00
shellchecks.sh [CI] Run shellcheck and shfmt (#2454) 2019-07-22 16:07:40 +02:00

README.md

FreshRSS tests

cd ./tests/
wget https://phar.phpunit.de/phpunit.phar
php phpunit.phar --bootstrap bootstrap.php

The shellchecks.sh script is used to safeguard shell scripts from common shell script bugs and to ensure a consistent style. It requires ShellCheck and shfmt.