diff options
author | diosmosis <benaka@piwik.pro> | 2015-03-17 19:48:58 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-03-17 19:48:58 +0300 |
commit | ec3bc91a4a13eebab263cca9175626a38f1cdb3f (patch) | |
tree | ad9243c09cad3f9bf14d3f346557771e63032cee /tests/PHPUnit/Framework/TestCase | |
parent | e43871cf0997ab90a1f7929aac0a89ccd38d9018 (diff) | |
parent | 74f0d0ff2529aed1ce07bb2409ea204c9cadd99c (diff) |
Merge branch 'master' into geo-attribution-task
Diffstat (limited to 'tests/PHPUnit/Framework/TestCase')
-rw-r--r-- | tests/PHPUnit/Framework/TestCase/ConsoleCommandTestCase.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/PHPUnit/Framework/TestCase/ConsoleCommandTestCase.php b/tests/PHPUnit/Framework/TestCase/ConsoleCommandTestCase.php index 3a8d33c7a5..2da07556e1 100644 --- a/tests/PHPUnit/Framework/TestCase/ConsoleCommandTestCase.php +++ b/tests/PHPUnit/Framework/TestCase/ConsoleCommandTestCase.php @@ -61,4 +61,13 @@ class ConsoleCommandTestCase extends SystemTestCase { return "Command did not behave as expected. Command output: " . $this->applicationTester->getDisplay(); } + + protected function getInputStream($input) + { + $stream = fopen('php://memory', 'r+', false); + fputs($stream, $input); + rewind($stream); + + return $stream; + } }
\ No newline at end of file |