Asserts that the log buffer contains specified message
public assertInLogs ( string $expected, $errorMsg = "Expected to find '%s' in logs: %s" ) : void | ||
$expected | string | Message subsctring |
return | void |
public function testAssertInLogsFail() { $this->setExpectedException('PHPUnit_Framework_AssertionFailedError', 'this should produce error'); $outputter = new Outputter($this); $outputter->assertInLogs('not found', 'this should produce error'); }
public function testAssertInLogsFail() { $this->setExpectedException('Exception', 'this should produce error'); $outputter = new Outputter($this); $outputter->assertInLogs('not found', 'this should produce error'); }