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