-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Conversation
The travis test failed in HHVM only and the error message is:
/home/travis/build/fzaninotto/Faker/test/Faker/Provider/DateTimeTest.php:119 FAILURES! Since the DateTime provider is not touched in this PR, I am not sure where the issue is. Could you please give me some advise for that? Thanks. |
Probably a random failure due to an advancing clock... |
|
||
protected static function strlen($text) | ||
{ | ||
return function_exists('mb_strlen') ? mb_strlen($text, 'UTF-8') : count(static::split($text)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
static::split()
doesn't seem to exist. Do you mean static::explode()
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, you are right. Fixed now.
I re-triggered Travis, and it seems to pass now. |
Thanks a lot! |
Thanks! :-) |
This PR generalizes the base realText provider and provides the instance for zh_TW locale.