public function testIterator()
 {
     $this->collection->add('Hye');
     $this->collection->add(34);
     $this->collection->add(array('Hello'));
     $array = array();
     foreach ($this->collection as $key => $value) {
         $array[$key] = $value;
     }
     $this->assertEquals($array, $this->collection->toArray());
 }
Пример #2
0
 public function addObjectClass($objectClass)
 {
     $this->objectClass->add($objectClass);
     return $this;
 }