/**
  * @test
  */
 public function format_vampireGiven_returnFormattedString()
 {
     $vampire = VampireFixture::getVampire();
     $formatter = new AnalyzerLogFormatter();
     $returnValue = $formatter->format($vampire);
     $this->assertEquals(AnalyzerLogFormatTest::getLog() . "\n", $returnValue);
 }
 /**
  * @test
  */
 public function log_logWritten_isAnalyzerLogFormat()
 {
     $handler = new AnalyzerLogHandler($this->logDir);
     $handler->log(VampireFixture::getVampire());
     $logFiles = $this->readLogFiles();
     $this->assertCount(1, $logFiles);
     $logFileContent = file_get_contents($logFiles[0]);
     $this->assertEquals(AnalyzerLogFormatTest::getLog() . "\n", $logFileContent);
 }