Use mb_strlen instead of grapheme_strlen

Due to inconsistent behave, mb_strlen will be used.
This commit is contained in:
Daniel Ang
2021-08-29 12:55:37 +02:00
parent 851ce36010
commit 042f2ec3f3
3 changed files with 3 additions and 4 deletions

View File

@ -5,7 +5,7 @@ use PHPUnit\Framework\ExpectationFailedException;
it('passes', function ($value) {
expect($value)->toHaveLength(9);
})->with([
'Fortaleza', 'Sollefteå', 'Ιεράπετρα', 'PT-BR 🇵🇹🇧🇷😎',
'Fortaleza', 'Sollefteå', 'Ιεράπετρα',
(object) [1, 2, 3, 4, 5, 6, 7, 8, 9],
collect([1, 2, 3, 4, 5, 6, 7, 8, 9]),
]);