fix: methods name with \

This commit is contained in:
Nuno Maduro
2022-12-04 23:49:58 +00:00
parent 34878bf432
commit c5f6923e5a
3 changed files with 20 additions and 2 deletions

View File

@ -0,0 +1,13 @@
<?php
use Pest\Support\Str;
it('evaluates the code', function ($evaluatable, $expected) {
$code = Str::evaluable($evaluatable);
expect($code)->toBe($expected);
})->with([
['version()', 'version__'],
['version__ ', 'version___'],
['version\\', 'version_'],
]);