/** * @covers SmsZilla\SmsMessageModel::getRecipient */ public function testGetRecipient() { $this->addRecipients(); $retVal = $this->object->getRecipient(); foreach ($this->config['phones'] as $phone) { $this->assertEquals($phone, $retVal->current(), $phone); $retVal->next(); } }