You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following error occurs if multibyte characters of the same length are used in the test name.
PHP Fatal error: Cannot redeclare P\Tests\Feature\BbbTest::__pest_evaluable_______() in /__PATH__/vendor/pestphp/pest/src/Factories/TestCaseFactory.php(196) : eval()'d code on line 37
ERROR Fatal error: Cannot redeclare P\Tests\Feature\BbbTest::__pest_evaluable_______() in /__PATH__/vendor/pestphp/pest/src/Factories/TestCaseFactory.php(196) : eval()'d code on line 37.
Sample Code
<?php
test('ほげ', function () {
$this->assertTrue(true);
});
test('ふが', function () {
$this->assertTrue(true);
});
I'm not sure if this is a bug or intentional, but at least it didn't happen in version 1. Pest\Support::evaluable seems to be the problem area.
As you know, multibyte characters can be used in normal PHP function names.
So it is kind of normal for us Japanese to use multibyte characters in test names.
Thank you for your hard work!
The text was updated successfully, but these errors were encountered:
Pest 2.0.2
The following error occurs if multibyte characters of the same length are used in the test name.
Sample Code
I'm not sure if this is a bug or intentional, but at least it didn't happen in version 1.
Pest\Support::evaluable
seems to be the problem area.As you know, multibyte characters can be used in normal PHP function names.
So it is kind of normal for us Japanese to use multibyte characters in test names.
Thank you for your hard work!
The text was updated successfully, but these errors were encountered: