예제 #1
0
파일: SMSTest.php 프로젝트: pontifex/sms
 /**
  * @return Struct\SMSCollection
  */
 protected function makeSMSCollection()
 {
     $item1 = new Struct\SMS();
     $item1->setTo(new Struct\NumberTo(self::GERMANY, '456456456'));
     $item1->setFrom(new Struct\NumberFrom(self::GERMANY, '123456789'));
     $item1->setMessage(new Struct\Message('Message content!'));
     $item2 = new Struct\SMS();
     $item2->setTo(new Struct\NumberTo(self::GERMANY, '456456456'));
     $item2->setFrom(new Struct\NumberFrom(self::GERMANY, '123456789'));
     $item2->setMessage(new Struct\Message('Message content!'));
     $coll = new Struct\SMSCollection();
     $coll->attach($item1);
     $coll->attach($item2);
     return $coll;
 }
예제 #2
0
파일: SMS.php 프로젝트: pontifex/sms
 /**
  * @param Struct\SMSCollection $itemColl
  * @return bool
  */
 protected function isCollectionEmpty(Struct\SMSCollection $itemColl)
 {
     return 0 === $itemColl->count() ? true : false;
 }
예제 #3
0
 /**
  *
  */
 public function testRemoveAllWithValidObjectShouldReturnVoid()
 {
     $this->object->removeAll(new SMSCollection());
 }