FreshRSS/tests
Alexandre Alapetite 350edf398c
PHP 8.3 #[\Override] (#6273)
* PHP 8.3 #[\Override]
https://php.watch/versions/8.3/override-attr

With PHPStan `checkMissingOverrideMethodAttribute` https://phpstan.org/config-reference#checkmissingoverridemethodattribute

And modified the call to phpstan-next on the model of https://github.com/FreshRSS/Extensions/pull/228 (more robust than the find method, which gave some strange errors)

* Update extension example accordingly
2024-04-10 15:33:43 +02:00
..
app PHP 8.3 #[\Override] (#6273) 2024-04-10 15:33:43 +02:00
cli PHP 8.3 #[\Override] (#6273) 2024-04-10 15:33:43 +02: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 Fix PHP 7.4 compatibility (#6038) 2024-01-13 17:02:39 +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.