public function testResolversAreCalledOnToDictionary()
 {
     $enumerable = new Collection();
     $resolver = $this->getMockForAbstractClass('\\BCC\\EnumerableUtility\\Resolver\\ResolverInterface', ['resolve']);
     $resolver->expects($this->exactly(2))->method('resolve')->with('test')->will($this->returnValue(function ($item) {
         return $item;
     }));
     Collection::prependResolver($resolver);
     $enumerable->toDictionary('test', 'test');
     Collection::resetResolvers();
 }
 public function testRemoveAt()
 {
     $collection = new Collection(array(1, 3));
     $collection->removeAt(0);
     $this->assertEquals(array(3), $collection);
 }