Strings::ord("\u{D800}"), Nette\InvalidArgumentException::class, 'Invalid UTF-8 character "\xEDA080".', ); Assert::exception( fn() => Strings::ord(''), Nette\InvalidArgumentException::class, 'Invalid UTF-8 character "".', ); Assert::exception( fn() => Strings::ord("\xFF"), Nette\InvalidArgumentException::class, 'Invalid UTF-8 character "\xFF".', );