private function checkApplicationOutput($output)
{
$expected = $this->normalize($output);
$actual = $this->normalize($this->tester->getDisplay(true));
if (strpos($actual, $expected) === false) {
throw new \Exception(sprintf("Application output did not contain expected '%s'. Actual output:\n'%s'", $expected, $this->tester->getDisplay()));
}
}