public function testAssertInLogsFail() { $this->setExpectedException('PHPUnit_Framework_AssertionFailedError', 'this should produce error'); $outputter = new Outputter($this); $outputter->assertInLogs('not found', 'this should produce error'); }