public function testToString()
 {
     $this->fixture->setAttackers(array(1, 2))->setTime(new MongoDate(time() - 4000))->setVictimId(3)->setVictimShip(4)->setFinalBlowAttacker(1);
     $expected = $this->fixture->generateHash();
     $actual = (string) $this->fixture;
     $this->assertEquals($expected, $actual);
     $actual = $this->fixture->__toString();
     $this->assertEquals($expected, $actual);
 }
 /**
  * Get the ID hash, generate one if not available
  *
  * @return string
  */
 protected function getIdHash()
 {
     if (!$this->idHash) {
         $this->idHash = Kingboard_KillmailHash_IdHash::getByData(array('killTime' => $this->getTime(), 'victim' => $this->getVictim(), 'attackers' => $this->getAttackers(), 'items' => $this->getItems()));
     }
     return $this->idHash->generateHash();
 }