/** * Test initialization * * @param bool console * @param var assertions */ protected function initialize($console, $assertions) { $in = Console::$in; $out = Console::$out; $err = Console::$err; Console::initialize($console); try { $assertions(); } finally { Console::$in = $in; Console::$out = $out; Console::$err = $err; } }