getLog()); $pluginLogManager->appendLog('This is first test message.'); $pluginLogManager->appendLog('This is second test message.'); self::assertSame( implode( '', [ 'This is first test message.' . PHP_EOL, 'This is second test message.' . PHP_EOL, ] ), $pluginLogManager->getLog() ); $pluginLogManager->clearLog(); self::assertSame('', $pluginLogManager->getLog()); } }