dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Add support for 'hu-formal'"
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
shell
/
CommandTest.php
diff --git
a/tests/phpunit/includes/shell/CommandTest.php
b/tests/phpunit/includes/shell/CommandTest.php
index
3862cc2
..
2e03163
100644
(file)
--- 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() ) );
$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() );
}
}
}
}