%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
<?php
namespace Codeception\Util;
use Codeception\Lib\Console\Output;
use Symfony\Component\Console\Helper\QuestionHelper;
use Symfony\Component\Console\Input\ArgvInput;
use Symfony\Component\Console\Question\ConfirmationQuestion;
use Symfony\Component\Console\Question\Question;
/**
* This class is used only when Codeception is executed in `--debug` mode.
* In other cases method of this class won't be seen.
*/
class Debug
{
/**
* @var Output null
*/
protected static $output = null;
public static function setOutput(Output $output)
{
self::$output = $output;
}
/**
* Prints data to screen. Message can be any time of data
*
* @param $message
*/
public static function debug($message)
{
if (!self::$output) {
return;
}
self::$output->debug($message);
}
/**
* Pauses execution and waits for user input to proceed.
*/
public static function pause()
{
if (!self::$output) {
return;
}
self::$output->writeln("<info>The execution has been paused. Press ENTER to continue</info>");
if (trim(fgets(STDIN)) != chr(13)) {
return;
}
}
public static function isEnabled()
{
return (bool) self::$output;
}
public static function confirm($question)
{
if (!self::$output) {
return;
}
$questionHelper = new QuestionHelper();
return $questionHelper->ask(new ArgvInput(), self::$output, new ConfirmationQuestion($question));
}
}