endtoend-test-psl/tests/Psl/Shell/EscapeCommandTest.php
2021-03-01 04:02:29 +01:00

20 lines
379 B
PHP

<?php
declare(strict_types=1);
namespace Psl\Tests\Shell;
use PHPUnit\Framework\TestCase;
use Psl\Shell;
final class EscapeCommandTest extends TestCase
{
public function testEscapeCommand(): void
{
static::assertSame(
"Hello, World!",
Shell\execute(Shell\escape_command(PHP_BINARY), ['-r', 'echo "Hello, World!";'])
);
}
}