Skip to content

Commit

Permalink
tests: StringIterator - Add test.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Jan 14, 2022
1 parent a66242d commit fe15a5b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/unit/Iterator/StringIteratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,14 @@ public function testWithUTF8String(): void
$iterator
);
}

public function testWithUTF8StringDelimiter(): void
{
$iterator = new StringIterator('a😃b😃c', '😃');

self::assertIdenticalIterable(
['a', 'b', 'c'],
$iterator
);
}
}

0 comments on commit fe15a5b

Please sign in to comment.