Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiosmosis <benaka@piwik.pro>2015-03-17 19:48:58 +0300
committerdiosmosis <benaka@piwik.pro>2015-03-17 19:48:58 +0300
commitec3bc91a4a13eebab263cca9175626a38f1cdb3f (patch)
treead9243c09cad3f9bf14d3f346557771e63032cee /tests/PHPUnit/Framework/TestCase
parente43871cf0997ab90a1f7929aac0a89ccd38d9018 (diff)
parent74f0d0ff2529aed1ce07bb2409ea204c9cadd99c (diff)
Merge branch 'master' into geo-attribution-task
Diffstat (limited to 'tests/PHPUnit/Framework/TestCase')
-rw-r--r--tests/PHPUnit/Framework/TestCase/ConsoleCommandTestCase.php9
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