function it_locates_all_locators_resources_if_query_string_is_empty($locator1, $locator2, Resource $resource1, Resource $resource2, Resource $resource3)
{
$this->registerLocator($locator1);
$this->registerLocator($locator2);
$locator1->getAllResources()->willReturn(array($resource3, $resource2));
$locator2->getAllResources()->willReturn(array($resource1));
$resource1->getSpecClassname()->willReturn('Some\\Spec1');
$resource2->getSpecClassname()->willReturn('Some\\Spec2');
$resource3->getSpecClassname()->willReturn('Some\\Spec3');
$this->locateResources('')->shouldReturn(array($resource1, $resource3, $resource2));
}