Beispiel #1
0
 public function testIsValid()
 {
     $this->assertFalse($this->object->isValid());
     $this->object->setTo('to-id');
     $this->assertFalse($this->object->isValid());
     $this->object->setState(ChatState::STATE_COMPOSING);
     $this->assertTrue($this->object->isValid());
 }
 /**
  * @param $toNumber
  */
 protected function simulateTypingStart($toNumber)
 {
     // Sending composing notification (simulating typing)
     $this->chatState->setTo($toNumber)->setState(ChatState::STATE_COMPOSING);
     $this->client->send($this->chatState);
 }