mirror of
https://github.com/danog/endtoend-test-psl.git
synced 2024-12-04 02:28:36 +01:00
20 lines
379 B
PHP
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!";'])
|
|
);
|
|
}
|
|
}
|