示例#1
0
 /**
  * @covers SmsZilla\SmsMessageModel::setRecipient
  * @covers SmsZilla\SmsMessageModel::getRecipients
  */
 public function testDuplicatedRecipients()
 {
     foreach ($this->config['phones'] as $phone) {
         $this->object->addRecipient($phone);
     }
     $this->object->addRecipient($this->config['phones'][0]);
     $this->object->addRecipient($this->config['phones'][count($this->config['phones']) - 1]);
     $retVal = $this->object->getRecipients();
     $this->assertCount(count($this->config['phones']), $retVal);
 }