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:
commit
b29491cd60
@ -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());
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -38,7 +38,6 @@ class FilenameFilterIteratorTest extends IteratorTestCase
|
||||
array(array(), array('/\.php$/'), array('test.py')),
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class InnerNameIterator extends \ArrayIterator
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user