getResponse(); if (false === stripos($response->getContent(), $match)) { throw new PHPUnit_Framework_ExpectationFailedException(sprintf( 'Failed asserting output CONTAINS content "%s", actual content is "%s"', $match, $response->getContent() )); } $this->assertNotSame(false, stripos($response->getContent(), $match)); } /** * Assert console output not contain content * * @param string $match content that should be contained in matched nodes * @return void */ public function assertNotConsoleOutputContains($match) { $response = $this->getResponse(); if (false !== stripos($response->getContent(), $match)) { throw new PHPUnit_Framework_ExpectationFailedException(sprintf( 'Failed asserting output DOES NOT CONTAIN content "%s"', $match )); } $this->assertSame(false, stripos($response->getContent(), $match)); } }