Commit d1f72be5 by Alexander Makarov

Used echo instead of stdout not to cluttter tests

parent e88a5d9c
...@@ -245,7 +245,7 @@ class MessageController extends Controller ...@@ -245,7 +245,7 @@ class MessageController extends Controller
protected function extractMessages($fileName, $translator) protected function extractMessages($fileName, $translator)
{ {
$coloredFileName = Console::ansiFormat($fileName, [Console::FG_CYAN]); $coloredFileName = Console::ansiFormat($fileName, [Console::FG_CYAN]);
$this->stdout("Extracting messages from $coloredFileName...\n"); echo "Extracting messages from $coloredFileName...\n";
$subject = file_get_contents($fileName); $subject = file_get_contents($fileName);
$messages = []; $messages = [];
if (!is_array($translator)) { if (!is_array($translator)) {
...@@ -288,7 +288,7 @@ class MessageController extends Controller ...@@ -288,7 +288,7 @@ class MessageController extends Controller
$line = Console::ansiFormat($this->getLine($buffer), [Console::FG_CYAN]); $line = Console::ansiFormat($this->getLine($buffer), [Console::FG_CYAN]);
$skipping = Console::ansiFormat('Skipping line', [Console::FG_YELLOW]); $skipping = Console::ansiFormat('Skipping line', [Console::FG_YELLOW]);
$this->stdout("$skipping $line. Make sure both category and message are static strings.\n"); echo "$skipping $line. Make sure both category and message are static strings.\n";
} }
// prepare for the next match // prepare for the next match
...@@ -302,7 +302,7 @@ class MessageController extends Controller ...@@ -302,7 +302,7 @@ class MessageController extends Controller
} }
} }
$this->stdout("\n"); echo "\n";
return $messages; return $messages;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment