Skip to content

Commit

Permalink
Small cleanup in Finder tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
umpirsky committed Dec 12, 2012
1 parent 2cb19ac commit 8fd0338
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
6 changes: 1 addition & 5 deletions Tests/FinderTest.php
Expand Up @@ -26,10 +26,7 @@ public static function setUpBeforeClass()
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());
}
Expand Down Expand Up @@ -209,7 +206,6 @@ public function testIgnoreDotFiles($adapter)
$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());

}

/**
Expand Down
1 change: 0 additions & 1 deletion Tests/Iterator/FilenameFilterIteratorTest.php
Expand Up @@ -38,7 +38,6 @@ public function getAcceptData()
array(array(), array('/\.php$/'), array('test.py')),
);
}

}

class InnerNameIterator extends \ArrayIterator
Expand Down
2 changes: 0 additions & 2 deletions Tests/Iterator/MockSplFileInfo.php
Expand Up @@ -28,7 +28,6 @@ public function __construct($param)
if (is_string($param)) {
parent::__construct($param);
} elseif (is_array($param)) {

$defaults = array(
'name' => 'file.txt',
'contents' => null,
Expand Down Expand Up @@ -132,5 +131,4 @@ public function getRelativePathname()
{
return $this->relativePathname;
}

}

0 comments on commit 8fd0338

Please sign in to comment.