Ejemplo n.º 1
0
 function it_renders()
 {
     $console = new Console();
     $console->setTitle(null);
     $console->setDescription(null);
     $input = new Input();
     $output = new Output();
     $output->setEnableBuffering(true);
     $this->beConstructedWith($input, $output);
     $this->render($console);
 }
Ejemplo n.º 2
0
 /**
  * Console constructor.
  *
  * @param IContainer $container
  */
 public function __construct(IContainer $container)
 {
     parent::__construct();
     $this->setContainer($container);
     $this->getContainer()->set([IInput::class, Input::class], $this->getInput());
     $this->getContainer()->set([IOutput::class, Output::class], $this->getOutput());
 }