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 13, 2022
1 parent eb61a90 commit a66242d
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 @@ -40,4 +40,14 @@ public function testIterateWithDelimiter(): void
$iterator
);
}

public function testWithUTF8String(): void
{
$iterator = new StringIterator('😃😁😂');

self::assertIdenticalIterable(
['😃', '😁', '😂'],
$iterator
);
}
}

0 comments on commit a66242d

Please sign in to comment.