spec\PhpSpec\Locator\PSR0\PSR0LocatorSpec::it_finds_all_resources_from_tracked_specPath PHP Метод

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

public it_finds_all_resources_from_tracked_specPath ( Filesystem $fs, SplFileInfo $file )
$fs PhpSpec\Util\Filesystem
$file SplFileInfo
    function it_finds_all_resources_from_tracked_specPath(Filesystem $fs, SplFileInfo $file)
    {
        $this->beConstructedWith($fs, '', 'spec', dirname(__DIR__), __DIR__);
        $path = __DIR__ . DIRECTORY_SEPARATOR . 'spec' . DIRECTORY_SEPARATOR;
        $filePath = __DIR__ . $this->convert_to_path('/spec/Some/ClassSpec.php');
        $fs->pathExists($path)->willReturn(true);
        $fs->findSpecFilesIn($path)->willReturn(array($file));
        $fs->getFileContents($filePath)->willReturn('<?php namespace spec\\Some; class ClassSpec {} ?>');
        $file->getRealPath()->willReturn($filePath);
        $resources = $this->getAllResources();
        $resources->shouldHaveCount(1);
        $resources[0]->getSpecClassname()->shouldReturn('spec\\Some\\ClassSpec');
    }
PSR0LocatorSpec