public function testIsValid() { $this->assertFalse($this->object->isValid()); $this->object->setId(['test']); $this->assertFalse($this->object->isValid()); $this->object->setTo(['test']); $this->assertTrue($this->object->isValid()); }
protected function sendReceipt(Client $client, NodeInterface $node) { $receipt = new Receipt(); $receipt->setTo($node->getAttribute('from')); $receipt->setId($node->getAttribute('id')); $client->send($receipt); return $this; }