function it_finds_single_spec_via_specPath(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 PSR0Locator {} ?>');
$file->getRealPath()->willReturn($filePath);
$resources = $this->findResources($filePath);
$resources->shouldHaveCount(1);
$resources[0]->getSrcClassname()->shouldReturn('PhpSpec\\Locator\\PSR0\\PSR0Locator');
}