@@ -36,6 +36,7 @@ discard block |
||
| 36 | 36 | * @param string|iterable $messages The message as an iterable of strings or a single string |
| 37 | 37 | * @param bool $newline Whether to add a newline |
| 38 | 38 | * @param int $options A bitmask of options (one of the OUTPUT or VERBOSITY constants), 0 is considered the same as self::OUTPUT_NORMAL | self::VERBOSITY_NORMAL |
| 39 | + * @return void |
|
| 39 | 40 | */ |
| 40 | 41 | public function write($messages, $newline = false, $options = 0); |
| 41 | 42 | |
@@ -44,6 +45,7 @@ discard block |
||
| 44 | 45 | * |
| 45 | 46 | * @param string|iterable $messages The message as an iterable of strings or a single string |
| 46 | 47 | * @param int $options A bitmask of options (one of the OUTPUT or VERBOSITY constants), 0 is considered the same as self::OUTPUT_NORMAL | self::VERBOSITY_NORMAL |
| 48 | + * @return void |
|
| 47 | 49 | */ |
| 48 | 50 | public function writeln($messages, $options = 0); |
| 49 | 51 | |
@@ -51,6 +53,7 @@ discard block |
||
| 51 | 53 | * Sets the verbosity of the output. |
| 52 | 54 | * |
| 53 | 55 | * @param int $level The level of verbosity (one of the VERBOSITY constants) |
| 56 | + * @return void |
|
| 54 | 57 | */ |
| 55 | 58 | public function setVerbosity($level); |
| 56 | 59 | |
@@ -93,6 +96,7 @@ discard block |
||
| 93 | 96 | * Sets the decorated flag. |
| 94 | 97 | * |
| 95 | 98 | * @param bool $decorated Whether to decorate the messages |
| 99 | + * @return void |
|
| 96 | 100 | */ |
| 97 | 101 | public function setDecorated($decorated); |
| 98 | 102 | |
@@ -103,6 +107,9 @@ discard block |
||
| 103 | 107 | */ |
| 104 | 108 | public function isDecorated(); |
| 105 | 109 | |
| 110 | + /** |
|
| 111 | + * @return void |
|
| 112 | + */ |
|
| 106 | 113 | public function setFormatter(OutputFormatterInterface $formatter); |
| 107 | 114 | |
| 108 | 115 | /** |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | /** |
| 37 | 37 | * Returns the default answer normalizer. |
| 38 | 38 | * |
| 39 | - * @return callable |
|
| 39 | + * @return \Closure |
|
| 40 | 40 | */ |
| 41 | 41 | private function getDefaultNormalizer() |
| 42 | 42 | { |
@@ -130,6 +130,7 @@ |
||
| 130 | 130 | * Add newline(s). |
| 131 | 131 | * |
| 132 | 132 | * @param int $count The number of newlines |
| 133 | + * @return void |
|
| 133 | 134 | */ |
| 134 | 135 | public function newLine($count = 1); |
| 135 | 136 | |
@@ -126,7 +126,7 @@ |
||
| 126 | 126 | /** |
| 127 | 127 | * Formats a command comment. |
| 128 | 128 | * |
| 129 | - * @param string|array $message |
|
| 129 | + * @param string $message |
|
| 130 | 130 | */ |
| 131 | 131 | public function comment($message) |
| 132 | 132 | { |
@@ -62,6 +62,9 @@ |
||
| 62 | 62 | require_once self::$fixturesPath.'/TestToto.php'; |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | + /** |
|
| 66 | + * @param string $text |
|
| 67 | + */ |
|
| 65 | 68 | protected function normalizeLineBreaks($text) |
| 66 | 69 | { |
| 67 | 70 | return str_replace(PHP_EOL, "\n", $text); |
@@ -120,16 +120,25 @@ |
||
| 120 | 120 | $listener->onConsoleTerminate($this->getConsoleTerminateEvent($this->getMockBuilder(InputInterface::class)->getMock(), 255)); |
| 121 | 121 | } |
| 122 | 122 | |
| 123 | + /** |
|
| 124 | + * @return null|LoggerInterface |
|
| 125 | + */ |
|
| 123 | 126 | private function getLogger() |
| 124 | 127 | { |
| 125 | 128 | return $this->getMockForAbstractClass(LoggerInterface::class); |
| 126 | 129 | } |
| 127 | 130 | |
| 131 | + /** |
|
| 132 | + * @param integer $exitCode |
|
| 133 | + */ |
|
| 128 | 134 | private function getConsoleTerminateEvent(InputInterface $input, $exitCode) |
| 129 | 135 | { |
| 130 | 136 | return new ConsoleTerminateEvent(new Command('test:run'), $input, $this->getOutput(), $exitCode); |
| 131 | 137 | } |
| 132 | 138 | |
| 139 | + /** |
|
| 140 | + * @return OutputInterface |
|
| 141 | + */ |
|
| 133 | 142 | private function getOutput() |
| 134 | 143 | { |
| 135 | 144 | return $this->getMockBuilder(OutputInterface::class)->getMock(); |
@@ -16,6 +16,9 @@ |
||
| 16 | 16 | |
| 17 | 17 | abstract class AbstractQuestionHelperTest extends TestCase |
| 18 | 18 | { |
| 19 | + /** |
|
| 20 | + * @param resource $stream |
|
| 21 | + */ |
|
| 19 | 22 | protected function createStreamableInputInterfaceMock($stream = null, $interactive = true) |
| 20 | 23 | { |
| 21 | 24 | $mock = $this->getMockBuilder(StreamableInputInterface::class)->getMock(); |
@@ -109,6 +109,11 @@ |
||
| 109 | 109 | } |
| 110 | 110 | } |
| 111 | 111 | |
| 112 | + /** |
|
| 113 | + * @param string $name |
|
| 114 | + * |
|
| 115 | + * @return \Symfony\Component\Console\Helper\HelperInterface |
|
| 116 | + */ |
|
| 112 | 117 | private function getGenericMockHelper($name, HelperSet $helperset = null) |
| 113 | 118 | { |
| 114 | 119 | $mock_helper = $this->getMockBuilder('\Symfony\Component\Console\Helper\HelperInterface')->getMock(); |
@@ -872,6 +872,9 @@ |
||
| 872 | 872 | return new StreamOutput(fopen('php://memory', 'r+', false), $verbosity, $decorated); |
| 873 | 873 | } |
| 874 | 874 | |
| 875 | + /** |
|
| 876 | + * @param string $expected |
|
| 877 | + */ |
|
| 875 | 878 | protected function generateOutput($expected) |
| 876 | 879 | { |
| 877 | 880 | $count = substr_count($expected, "\n"); |