endtoend-test-psl/tests/Psl/Shell/EscapeCommandTest.php
2021-03-18 16:03:21 +01:00

21 lines
376 B
PHP

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