Example #1
0
 /**
  * getIterator description
  *
  * @param  string
  * @param  string
  * @param  string
  *
  * @return  string  getIteratorReturn
  *
  * @dataProvider  getIteratorData
  *
  * @since  2.0
  */
 public function testGetIterator($paths, $expects, $rescursive)
 {
     $this->setUp();
     $this->collection->addPaths($paths);
     $iterator = $this->collection;
     $compare = array();
     foreach ($iterator as $file) {
         $compare[] = (string) $file;
     }
     $this->assertEquals($compare, $expects);
 }