mirror of
https://github.com/pestphp/pest.git
synced 2026-03-07 00:07:22 +01:00
Use mb_strlen instead of grapheme_strlen
Due to inconsistent behave, mb_strlen will be used.
This commit is contained in:
@ -333,7 +333,7 @@ final class Expectation
|
||||
public function toHaveLength(int $number): Expectation
|
||||
{
|
||||
if (is_string($this->value)) {
|
||||
Assert::assertEquals($number, grapheme_strlen($this->value));
|
||||
Assert::assertEquals($number, mb_strlen($this->value));
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user