mirror of
https://github.com/pestphp/pest.git
synced 2026-07-22 17:40:03 +02:00
16 lines
375 B
PHP
16 lines
375 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use Pest\Support\Str;
|
|
|
|
it('evaluates the code', function (string $evaluatable, $expected): void {
|
|
$code = Str::evaluable($evaluatable);
|
|
|
|
expect($code)->toBe($expected);
|
|
})->with([
|
|
['version()', '__pest_evaluable_version__'],
|
|
['version__ ', '__pest_evaluable_version_____'],
|
|
['version\\', '__pest_evaluable_version_'],
|
|
]);
|