Skip to content

Commit 1f4477c

Browse files
authored
Improve StandardFiltersTest (#214)
1 parent c503efd commit 1f4477c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/Liquid/StandardFiltersTest.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,10 +876,15 @@ public function testSplit()
876876
'two-one-three',
877877
array('two', 'one', 'three'),
878878
),
879+
array(
880+
'12301230123',
881+
array('123', '123', '123'),
882+
'0'
883+
),
879884
);
880885

881886
foreach ($data as $item) {
882-
$this->assertEquals($item[1], StandardFilters::split($item[0], '-'));
887+
$this->assertEquals($item[1], StandardFilters::split($item[0], $item[2] ?? '-'));
883888
}
884889
}
885890

0 commit comments

Comments
 (0)