public function testCollectWithoutCollectMethod()
{
$resolver = new AggregateResolver();
$lowPriority = $this->getMock(ResolverInterface::class);
$resolver->attach($lowPriority);
$this->assertEquals(array(), $resolver->collect());
$highPriority = $this->getMock(ResolverInterface::class);
$resolver->attach($highPriority, 1000);
$collection = $resolver->collect();
$this->assertEquals(array(), $collection);
$this->assertCount(0, $collection);
}