예제 #1
0
 /**
  * @depends test_construct
  * @covers ::getIterator
  */
 public function test_getIterator()
 {
     $count = 0;
     $this->assertInstanceOf('Traversable', $this->Email->getIterator(), 'IEmailAddress::getIterator() Returned an invalid result');
     foreach ($this->Email as $v) {
         $count++;
     }
     $this->assertSame(count($this->Email), $count, 'IEmailAddress::getIterator() Returned an invalid result');
 }