Пример #1
0
 /**
  * @covers       CollectionType\Iterator\IteratorAbstract::clear
  */
 public function testClear()
 {
     $this->iterator->add('A');
     $this->iterator->add('B');
     $this->iterator->clear();
     $result = $this->iterator->count();
     $this->assertEquals(0, $result);
 }
Пример #2
0
 /**
  * @covers       CollectionType\Iterator\IteratorAbstract::count
  */
 public function testCountForManyValues()
 {
     $this->iterator->add('A');
     $this->iterator->add('B');
     $this->iterator->add('C');
     $this->iterator->add('D');
     $this->iterator->add('E');
     $result = $this->iterator->count();
     $this->assertEquals(5, $result);
 }