mirror of
https://github.com/pestphp/pest.git
synced 2026-03-07 00:07:22 +01:00
fix: methods name with \
This commit is contained in:
13
tests/Unit/Support/Str.php
Normal file
13
tests/Unit/Support/Str.php
Normal 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_'],
|
||||
]);
|
||||
Reference in New Issue
Block a user