X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;f=vendor%2Fbehat%2Fbehat%2Fsrc%2FBehat%2FTestwork%2FOutput%2FPrinter%2FOutputPrinter.php;fp=vendor%2Fbehat%2Fbehat%2Fsrc%2FBehat%2FTestwork%2FOutput%2FPrinter%2FOutputPrinter.php;h=91292d39c3d925ca45a88b3b79c98a10c83ed334;hb=1270d9129ce8f27c9b28b10518e32132c58e0aca;hp=0000000000000000000000000000000000000000;hpb=c27c0f0cdaa3f354b1fe54a56ae7e854be6e3f68;p=yaffs-website diff --git a/vendor/behat/behat/src/Behat/Testwork/Output/Printer/OutputPrinter.php b/vendor/behat/behat/src/Behat/Testwork/Output/Printer/OutputPrinter.php new file mode 100644 index 000000000..91292d39c --- /dev/null +++ b/vendor/behat/behat/src/Behat/Testwork/Output/Printer/OutputPrinter.php @@ -0,0 +1,119 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Behat\Testwork\Output\Printer; + +/** + * Isolates all console/filesystem writing. + * + * @author Konstantin Kudryashov + */ +interface OutputPrinter +{ + /** + * @deprecated since 3.1, to be removed in 4.0 + */ + const VERBOSITY_NORMAL = 1; + /** + * @deprecated since 3.1, to be removed in 4.0 + */ + const VERBOSITY_VERBOSE = 2; + /** + * @deprecated since 3.1, to be removed in 4.0 + */ + const VERBOSITY_VERY_VERBOSE = 3; + /** + * @deprecated since 3.1, to be removed in 4.0 + */ + const VERBOSITY_DEBUG = 4; + + /** + * Sets output path. + * + * @param string $path + */ + public function setOutputPath($path); + + /** + * Returns output path. + * + * @return null|string + * + * @deprecated since 3.1, to be removed in 4.0 + */ + public function getOutputPath(); + + /** + * Sets output styles. + * + * @param array $styles + */ + public function setOutputStyles(array $styles); + + /** + * Returns output styles. + * + * @return array + * + * @deprecated since 3.1, to be removed in 4.0 + */ + public function getOutputStyles(); + + /** + * Forces output to be decorated. + * + * @param Boolean $decorated + */ + public function setOutputDecorated($decorated); + + /** + * Returns output decoration status. + * + * @return null|Boolean + * + * @deprecated since 3.1, to be removed in 4.0 + */ + public function isOutputDecorated(); + + /** + * Sets output verbosity level. + * + * @param integer $level + */ + public function setOutputVerbosity($level); + + /** + * Returns output verbosity level. + * + * @return integer + * + * @deprecated since 3.1, to be removed in 4.0 + */ + public function getOutputVerbosity(); + + /** + * Writes message(s) to output stream. + * + * @param string|array $messages message or array of messages + */ + public function write($messages); + + /** + * Writes newlined message(s) to output stream. + * + * @param string|array $messages message or array of messages + */ + public function writeln($messages = ''); + + /** + * Clear output stream, so on next write formatter will need to init (create) it again. + */ + public function flush(); +}