protected function appendToFile($filename, $content) { $this->assertFileExists($filename); file_put_contents($filename, $content, FILE_APPEND); }