Skip to content

Commit 78f6400

Browse files
[Tests] New iteration of removing $this occurrences in future static data providers
1 parent 6071aeb commit 78f6400

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Tests/Iterator/DateRangeFilterIteratorTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class DateRangeFilterIteratorTest extends RealIteratorTestCase
2222
public function testAccept($size, $expected)
2323
{
2424
$files = self::$files;
25-
$files[] = self::toAbsolute('doesnotexist');
25+
$files[] = static::toAbsolute('doesnotexist');
2626
$inner = new Iterator($files);
2727

2828
$iterator = new DateRangeFilterIterator($inner, $size);
@@ -84,9 +84,9 @@ public function getAcceptData()
8484
];
8585

8686
return [
87-
[[new DateComparator('since 20 years ago')], $this->toAbsolute($since20YearsAgo)],
88-
[[new DateComparator('since 2 months ago')], $this->toAbsolute($since2MonthsAgo)],
89-
[[new DateComparator('until last month')], $this->toAbsolute($untilLastMonth)],
87+
[[new DateComparator('since 20 years ago')], static::toAbsolute($since20YearsAgo)],
88+
[[new DateComparator('since 2 months ago')], static::toAbsolute($since2MonthsAgo)],
89+
[[new DateComparator('until last month')], static::toAbsolute($untilLastMonth)],
9090
];
9191
}
9292
}

0 commit comments

Comments
 (0)