X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fshell%2FCommandTest.php;h=2e031638857d41a84cacc55d75d20e6ae8c32f27;hb=437d44db61bc22260d0c8a4be67a7e267b2fb5b8;hp=3862cc2444508a1e9e8786186910192229f63d6e;hpb=d4fc5eccd787c5b5c1b9bd4fe506ed58650ac64e;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/shell/CommandTest.php b/tests/phpunit/includes/shell/CommandTest.php index 3862cc2444..2e03163885 100644 --- a/tests/phpunit/includes/shell/CommandTest.php +++ b/tests/phpunit/includes/shell/CommandTest.php @@ -170,5 +170,12 @@ class CommandTest extends PHPUnit\Framework\TestCase { $command->input( str_repeat( '!', 1000000 ) ); $result = $command->execute(); $this->assertSame( 1000000, strlen( $result->getStdout() ) ); + + // And try it with empty input + $command = new Command(); + $command->params( 'cat' ); + $command->input( '' ); + $result = $command->execute(); + $this->assertSame( '', $result->getStdout() ); } }