Extend test coverage to PHP 8.3

This commit is contained in:
Christian Bläul
2024-08-29 17:05:04 +02:00
parent 27ab8a3e05
commit 259e9a6c31
7 changed files with 69 additions and 6 deletions

View File

@@ -25,7 +25,7 @@ class OffsetTest extends BaseClass {
$this->assertEquals($expected, $actual);
}
public function numberRangeZeroToFourProvider() {
public static function numberRangeZeroToFourProvider() {
return array_map(function ($number) {
return [$number];
}, range(0, 4));

View File

@@ -7,7 +7,7 @@ class SortByTest extends BaseClass {
public function testSortByRating() {
$this->csv->sort_by = 'rating';
$this->csv->conditions = 'title does not contain Blood';
if (!preg_match('/^8\.2\./', phpversion()))
if (!preg_match('/^8\.2\./', phpversion()) && !preg_match('/^8\.3\./', phpversion()))
$this->_compareWithExpected([
// Rating 0
'The Killing Kind',