mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
14 lines
283 B
PHP
14 lines
283 B
PHP
<?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_'],
|
|
]);
|