function it_finds_spec_resources_via_fullSrcPath(Filesystem $fs, SplFileInfo $file)
{
$this->beConstructedWith($fs, 'PhpSpec', 'spec', $this->srcPath, $this->specPath);
$filePath = $this->specPath . $this->convert_to_path('/spec/PhpSpec/Console/AppSpec.php');
$fs->pathExists($this->specPath . $this->convert_to_path('/spec/PhpSpec/Console/'))->willReturn(true);
$fs->findSpecFilesIn($this->specPath . $this->convert_to_path('/spec/PhpSpec/Console/'))->willReturn(array($file));
$fs->getFileContents($filePath)->willReturn('<?php namespace spec\\PhpSpec\\Console; class App {} ?>');
$file->getRealPath()->willReturn($filePath);
$resources = $this->findResources($this->srcPath . $this->convert_to_path('/PhpSpec/Console'));
$resources->shouldHaveCount(1);
$resources[0]->getSrcClassname()->shouldReturn('PhpSpec\\Console\\App');
}