setVerbosity() 공개 메소드

Sets the verbosity level of the output.
public setVerbosity ( integer $verbosity )
$verbosity integer One of the constants {@link NORMAL}, {@link VERBOSE}, {@link VERY_VERBOSE} or {@link DEBUG}. Only output with the given verbosity level or smaller will be written out.
예제 #1
0
 public function testWriteLineRawWhenDebug()
 {
     $this->output->setVerbosity(IO::DEBUG);
     $this->output->writeLineRaw('Lorem ipsum');
     $this->output->writeLineRaw('dolor sit amet', IO::VERBOSE);
     $this->output->writeLineRaw('consetetur', IO::VERY_VERBOSE);
     $this->output->writeLineRaw('sadipscing elitr', IO::DEBUG);
     $this->assertSame('Lorem ipsum' . PHP_EOL . 'dolor sit amet' . PHP_EOL . 'consetetur' . PHP_EOL . 'sadipscing elitr' . PHP_EOL, $this->stream->fetch());
 }
예제 #2
0
파일: IO.php 프로젝트: webmozart/console
 /**
  * Sets the verbosity of the output.
  *
  * @param int $verbosity One of the constants {@link NORMAL}, {@link VERBOSE},
  *                       {@link VERY_VERBOSE} or {@link DEBUG}. Only output
  *                       with the given verbosity level or smaller will be
  *                       passed through.
  */
 public function setVerbosity($verbosity)
 {
     $this->output->setVerbosity($verbosity);
     $this->errorOutput->setVerbosity($verbosity);
 }