mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 15:57:21 +01:00
14 lines
334 B
PHP
14 lines
334 B
PHP
<?php
|
|
|
|
use Pest\Support\Str;
|
|
|
|
it('evaluates the code', function ($evaluatable, $expected) {
|
|
$code = Str::evaluable($evaluatable);
|
|
|
|
expect($code)->toBe($expected);
|
|
})->with([
|
|
['version()', '__pest_evaluable_version__'],
|
|
['version__ ', '__pest_evaluable_version___'],
|
|
['version\\', '__pest_evaluable_version_'],
|
|
]);
|