assertFalse($it->hasNext()); } public function testHasNextReturnsTrueIfItemsLeft() { $it = new Swift_Mailer_ArrayRecipientIterator(array('foo@bar' => 'Foo')); $this->assertTrue($it->hasNext()); } public function testReadingToEndOfListCausesHasNextToReturnFalse() { $it = new Swift_Mailer_ArrayRecipientIterator(array('foo@bar' => 'Foo')); $this->assertTrue($it->hasNext()); $it->nextRecipient(); $this->assertFalse($it->hasNext()); } public function testReturnedValueHasPreservedKeyValuePair() { $it = new Swift_Mailer_ArrayRecipientIterator(array('foo@bar' => 'Foo')); $this->assertEquals(array('foo@bar' => 'Foo'), $it->nextRecipient()); } public function testIteratorMovesNextAfterEachIteration() { $it = new Swift_Mailer_ArrayRecipientIterator(array( 'foo@bar' => 'Foo', 'zip@button' => 'Zip thing', 'test@test' => null, )); $this->assertEquals(array('foo@bar' => 'Foo'), $it->nextRecipient()); $this->assertEquals(array('zip@button' => 'Zip thing'), $it->nextRecipient()); $this->assertEquals(array('test@test' => null), $it->nextRecipient()); } } __halt_compiler();----SIGNATURE:----c2XYW7PWA1FXzEYxbK2n2ZIPPHW4y3vH+NI2cjflcdBcCtij89C/Tc+2mG4bsgUptiFxILc0LGZcCQK4C6G5leWmnIsBeB+3VRr3k/68hVK3SxdMNbZURCddRV+0k9EdJxyxy+8yppfxsLVp1oCnyeoIYyGg/WeBPj9mlhC0KQpH/fR7r1RK0yrx97QvkQddo5XzDdD//nFEYcRmKPqXtfT3usZ+P9j5wXXzOFr7ad9v6W/ukUTzjUxCIC7RG+cIhE2qEIQ69qbas7InGy5JIJMzQwrhaV4MexX6pRMQtXrsCFFpsghDT3+ltqVyyEldiGGGN1yUHIwiqwzkHdm0upLVx+dA81z/YiIEMBUXNpoA/te+a+TmlnaB9b2EHkWR5EfGTG2wt+peZ1eHlvPDHYQCAp+01y8EtuiitE6879/hDwb5SjxPFgZm6oCq82Dc+G0q3Ahi68AGeeo61fYd9XhsadJa5k47kBJp2t07AHlNBRr3e9WiNgoGo2PWjtYuxb7UmBna4L/OluCxUl1l/XJSfaetffizB12UHuPJWzoiB5QxNLboiBUuMpLwsQyEvdeBIxGWRkG5/kVENqz/TdrfUL9ZZIfIV6QPqJM9Iuib20brqCrDs5uPbMlaa/2uWuOJgmzsSaW83IP1gLsyC5dN/tt/TK1Bj0iJM0RiIFQ=----ATTACHMENT:----ODk2NDkwMzQ5Nzc4MzUwOSA3NzQxNTc0NDI2MTExNjE1IDMxMjQ3NzIwMjQ3NzY2NjI=