merged branch umpirsky/clean-finder-test (PR #6305)

This PR was merged into the master branch.

Commits
-------

57e70a7 Small cleanup in Finder tests.

Discussion
----------

[Finder] Small cleanup in tests.
This commit is contained in:
Fabien Potencier 2012-12-12 20:03:58 +01:00
commit b29491cd60
3 changed files with 1 additions and 8 deletions

View File

@ -26,10 +26,7 @@ class FinderTest extends Iterator\RealIteratorTestCase
self::$tmpDir = sys_get_temp_dir().'/symfony2_finder';
}
/**
* @dataProvider getAdaptersTestData
*/
public function testCreate($adapter)
public function testCreate()
{
$this->assertInstanceOf('Symfony\Component\Finder\Finder', Finder::create());
}
@ -209,7 +206,6 @@ class FinderTest extends Iterator\RealIteratorTestCase
$finder = $this->buildFinder($adapter);
$this->assertSame($finder, $finder->ignoreDotFiles(true)->ignoreVCS(false));
$this->assertIterator($this->toAbsolute(array('foo', 'foo/bar.tmp', 'test.php', 'test.py', 'toto', 'foo bar')), $finder->in(self::$tmpDir)->getIterator());
}
/**

View File

@ -38,7 +38,6 @@ class FilenameFilterIteratorTest extends IteratorTestCase
array(array(), array('/\.php$/'), array('test.py')),
);
}
}
class InnerNameIterator extends \ArrayIterator

View File

@ -28,7 +28,6 @@ class MockSplFileInfo extends \SplFileInfo
if (is_string($param)) {
parent::__construct($param);
} elseif (is_array($param)) {
$defaults = array(
'name' => 'file.txt',
'contents' => null,
@ -132,5 +131,4 @@ class MockSplFileInfo extends \SplFileInfo
{
return $this->relativePathname;
}
}