/**
  * Checks that user event data has been converted.
  *
  * @param array $data
  * @param \Phergie\Irc\Event\UserEvent $event
  */
 protected function checkUserEventData(array $data, UserEvent $event)
 {
     $this->assertSame($data['prefix'], $event->getPrefix());
     $this->assertSame($data['nick'], $event->getNick());
     $this->assertSame($data['user'], $event->getUsername());
     $this->assertSame($data['host'], $event->getHost());
     $this->assertSame($data['message'], $event->getMessage());
     $this->assertSame($data['command'], $event->getCommand());
     $this->assertSame($data['targets'], $event->getTargets());
 }
 /**
  * Tests setTargets().
  */
 public function testSetTargets()
 {
     $targets = array('foo', 'bar');
     $this->event->setTargets($targets);
     $this->assertSame($targets, $this->event->getTargets());
 }