Skip to content

Commit

Permalink
DX message
Browse files Browse the repository at this point in the history
  • Loading branch information
SpacePossum committed Mar 23, 2019
1 parent c625996 commit cf62089
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Symfony/Component/Console/Tester/CommandTester.php
Expand Up @@ -87,6 +87,10 @@ public function execute(array $input, array $options = [])
*/
public function getDisplay($normalize = false)
{
if (null === $this->output) {
throw new \RuntimeException('Output not initialized, did you execute the command before requesting the display?');
}

rewind($this->output->getStream());

$display = stream_get_contents($this->output->getStream());
Expand Down

0 comments on commit cf62089

Please sign in to comment.