Branch: refs/heads/master
Home: https://github.com/s9y/Serendipity
Commit: 78d4d10995cae0013966c5257efce6ea34b56bbd
https://github.com/s9y/Serendipity/commit/78d4d10995cae0013966c5257efce6ea34b56bbd
Author: Christian Garbs <mi...@cg...>
Date: 2024-02-20 (Tue, 20 Feb 2024)
Changed paths:
A .github/workflows/php_tests.yml
M tests/config.xml.dist
M tests/include/functionsConfigTest.php
M tests/include/functionsTest.php
M tests/phpunit.xml.dist
Log Message:
-----------
add simple CI pipeline with basic PHP test runner (#823)
* add initial PHP test workflow
test matrix contains all currently released and supported PHP versions
* actually run the tests as described in tests/README
* tests: fix PHPUnit imports
* tests: fix missing constant S9Y_INCLUDE_PATH
* tests: fix PHPUnit deprecation warning: DataProviders must be static
```
2 tests triggered 2 PHPUnit deprecations:
1) functionsTest::test_serendipity_serverOffsetHour
Data Provider method functionsTest::serverOffsetHourDataProvider() is not static
/home/runner/work/Serendipity/Serendipity/tests/include/functionsTest.php:17
2) functionsTest::test_serendipity_serverOffsetHourWithTimestampNull
Data Provider method functionsTest::serverOffsetHourWithTimestampNullDataProvider() is not static
/home/runner/work/Serendipity/Serendipity/tests/include/functionsTest.php:46
```
* tests: migrate PHPUnit XML configuration to version 11.0
```
There was 1 PHPUnit test runner deprecation:
1) Your XML configuration validates against a deprecated schema. Migrate your XML configuration using "--migrate-configuration"!
```
* tests: disable code coverage for now
* tests: migrate doc-comments to Attributes
```
There were 3 PHPUnit test runner deprecations:
1) Metadata found in doc-comment for method functionsConfigTest::test_serendipity_getTemplateFile(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
2) Metadata found in doc-comment for method functionsTest::test_serendipity_serverOffsetHour(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
3) Metadata found in doc-comment for method functionsTest::test_serendipity_serverOffsetHourWithTimestampNull(). Metadata in doc-comments is deprecated and will no longer be supported in PHPUnit 12. Update your test code to use attributes instead.
```
* tests: fix assertions
`assertContains()` is used for arrays etc., but we only have a string.
Use `assertStringEndsWith()` instead, the _ends with_ also makes the
test more robust.
* tests: also run on PHP 7.4
To unsubscribe from these emails, change your notification settings at https://github.com/s9y/Serendipity/settings/notifications
|