function it_does_not_throw_an_exception_on_no_class_definition_if_file_not_suffixed_with_spec(Filesystem $fs, SplFileInfo $file)
{
$this->beConstructedWith($fs, 'PhpSpec', 'spec', $this->srcPath, $this->specPath);
$filePath = $this->specPath . $this->convert_to_path('/spec/PhpSpec/Some/Class.php');
$fs->pathExists($this->specPath . $this->convert_to_path('/spec/PhpSpec/'))->willReturn(true);
$fs->findSpecFilesIn($this->specPath . $this->convert_to_path('/spec/PhpSpec/'))->willReturn(array());
$fs->getFileContents($filePath)->willReturn('no class definition');
$file->getRealPath()->willReturn($filePath);
$exception = new \RuntimeException('Spec file does not contains any class definition.');
$this->shouldNotThrow($exception)->duringFindResources($this->srcPath);
}