public function testAssertNotInLogsFail() { $this->setExpectedException('PHPUnit_Framework_AssertionFailedError', 'this should produce error'); $outputter = new Outputter($this); $outputter->stdout('this string exists'); $outputter->assertNotInLogs('this string exists', 'this should produce error'); }