spec\PhpSpec\Locator\PrioritizedResourceManagerSpec::it_locates_all_locators_resources_if_query_string_is_empty PHP Метод

it_locates_all_locators_resources_if_query_string_is_empty() публичный Метод

public it_locates_all_locators_resources_if_query_string_is_empty ( $locator1, $locator2, PhpSpec\Locator\Resource $resource1, PhpSpec\Locator\Resource $resource2, PhpSpec\Locator\Resource $resource3 )
$resource1 PhpSpec\Locator\Resource
$resource2 PhpSpec\Locator\Resource
$resource3 PhpSpec\Locator\Resource
    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));
    }