Esempio n. 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());
 }
Esempio n. 2
0
 protected function simulateTypingEnd()
 {
     // Sending paused notification (typing end)
     $this->chatState->setState(ChatState::STATE_PAUSED);
     $this->client->send($this->chatState);
 }