/** * 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); }
/** * Tests setCtcpCommand(). */ public function testSetCtcpCommand() { $command = 'COMMAND'; $this->event->setCtcpCommand($command); $this->assertSame($command, $this->event->getCtcpCommand()); }