Skip to content

Commit

Permalink
Use ob_start and ob_get_clean
Browse files Browse the repository at this point in the history
  • Loading branch information
Takashi Matsuo committed Oct 11, 2016
1 parent a6d4671 commit 5b11163
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion logging/api/test/ListEntriesCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,16 @@ public function testListEntries()
$application->add(new ListEntriesCommand());
$commandTester = new CommandTester($application->get('list-entries'));
$this->runEventuallyConsistentTest(function() use ($commandTester) {
ob_start();
$commandTester->execute(
[
'--project' => $this->projectId,
'--logger' => 'my_test_logger'
],
['interactive' => false]
);
$this->expectOutputRegex('/: Test Message/');
$output = ob_get_clean();
$this->assertRegexp('/: Test Message/', $output);
});
}
}

0 comments on commit 5b11163

Please sign in to comment.