mirror of
https://github.com/danog/endtoend-test-psl.git
synced 2024-12-02 09:38:32 +01:00
21 lines
376 B
PHP
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!";'])
|
|
);
|
|
}
|
|
}
|