コード例 #1
0
 /**
  * Enqueues a new CTCP event.
  *
  * @param string $command IRC command
  * @param string $ctcpCommand CTCP command
  * @param array $params Command parameters
  */
 protected function queueCtcpEvent($command, $ctcpCommand, array $params = [])
 {
     $event = new CtcpEvent();
     $event->setCtcpCommand($ctcpCommand);
     $this->queueRequest($event, $command, $params);
 }
コード例 #2
0
 /**
  * Tests setCtcpCommand().
  */
 public function testSetCtcpCommand()
 {
     $command = 'COMMAND';
     $this->event->setCtcpCommand($command);
     $this->assertSame($command, $this->event->getCtcpCommand());
 }