assertInLogs() public method

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
Ejemplo n.º 1
0
 public function testAssertInLogsFail()
 {
     $this->setExpectedException('PHPUnit_Framework_AssertionFailedError', 'this should produce error');
     $outputter = new Outputter($this);
     $outputter->assertInLogs('not found', 'this should produce error');
 }
Ejemplo n.º 2
0
 public function testAssertInLogsFail()
 {
     $this->setExpectedException('Exception', 'this should produce error');
     $outputter = new Outputter($this);
     $outputter->assertInLogs('not found', 'this should produce error');
 }