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

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

public it_finds_single_spec_via_srcPath ( Filesystem $fs, SplFileInfo $file )
$fs PhpSpec\Util\Filesystem
$file SplFileInfo
    function it_finds_single_spec_via_srcPath(Filesystem $fs, SplFileInfo $file)
    {
        $this->beConstructedWith($fs, 'PhpSpec', 'spec', $this->srcPath, $this->specPath);
        $filePath = $this->specPath . $this->convert_to_path('/spec/PhpSpec/Locator/PSR0/PSR0LocatorSpec.php');
        $fs->pathExists($this->specPath . $this->convert_to_path('/spec/PhpSpec/Locator/PSR0/PSR0LocatorSpec.php'))->willReturn(true);
        $fs->getFileContents($filePath)->willReturn('<?php namespace spec\\PhpSpec\\Locator\\PSR0; class PSR0LocatorSpec {} ?>');
        $file->getRealPath()->willReturn($filePath);
        $resources = $this->findResources($this->srcPath . $this->convert_to_path('/PhpSpec/Locator/PSR0/PSR0Locator.php'));
        $resources->shouldHaveCount(1);
        $resources[0]->getSrcClassname()->shouldReturn('PhpSpec\\Locator\\PSR0\\PSR0Locator');
    }
PSR0LocatorSpec