/**
  * Tests handleTableflipCommand().
  */
 public function testHandleTableflipCommand()
 {
     $event = $this->getMockCommandEvent();
     $queue = $this->getMockEventQueue();
     $plugin = new Plugin();
     Phake::when($event)->getSource()->thenReturn('#channel1');
     Phake::when($event)->getCommand()->thenReturn('PRIVMSG');
     $plugin->handleTableflipCommand($event, $queue);
     Phake::when($event)->getCustomParams()->thenReturn(array('#channel1'));
     Phake::verify($queue, Phake::atLeast(1))->ircPrivmsg('#channel1', $this->isType('string'));
 }
 /**
  * Tests that getSubscribedEvents() returns an array.
  */
 public function testGetSubscribedEvents()
 {
     $plugin = new Plugin();
     $this->assertInternalType('array', $plugin->getSubscribedEvents());
 }