mirror of
https://github.com/parsecsv/parsecsv-for-php.git
synced 2026-02-19 08:36:39 +00:00
Extend test coverage to PHP 8.3
This commit is contained in:
@@ -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));
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user