Fix FiltersCollection::getIterator in case of empty collection
This commit is contained in:
		
					parent
					
						
							
								1de948faba
							
						
					
				
			
			
				commit
				
					
						e43da86152
					
				
			
		
					 2 changed files with 12 additions and 2 deletions
				
			
		|  | @ -30,6 +30,12 @@ class FiltersCollectionTest extends TestCase | |||
|         $this->assertCount(2, $coll->getIterator()); | ||||
|     } | ||||
| 
 | ||||
|     public function testEmptyIterator() | ||||
|     { | ||||
|         $coll = new FiltersCollection(); | ||||
|         $this->assertInstanceOf('\ArrayIterator', $coll->getIterator()); | ||||
|     } | ||||
| 
 | ||||
|     public function testIteratorSort() | ||||
|     { | ||||
|         $coll = new FiltersCollection(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue