PHPUnitで文字列が含まれるか判定する


$log_string = file_get_contents($log_path);
$this->assertRegExp('/テストログ/', $log_string);