1
0
Fork 0

remove duplicity

pull/2828/head
Jan Brecka 2014-03-24 10:35:44 +01:00
parent 5763685e69
commit de09c5e371
1 changed files with 9 additions and 6 deletions

View File

@ -79,9 +79,7 @@ class ClassMapGeneratorTest extends \PHPUnit_Framework_TestCase
public function testCreateMapFinderSupport()
{
if (!class_exists('Symfony\\Component\\Finder\\Finder')) {
$this->markTestSkipped('Finder component is not available');
}
$this->checkIfFinderIsAvailable();
$finder = new Finder();
$finder->files()->in(__DIR__ . '/Fixtures/beta/NamespaceCollision');
@ -110,9 +108,7 @@ class ClassMapGeneratorTest extends \PHPUnit_Framework_TestCase
*/
public function testAmbiguousReference()
{
if (!class_exists('Symfony\\Component\\Finder\\Finder')) {
$this->markTestSkipped('Finder component is not available');
}
$this->checkIfFinderIsAvailable();
$finder = new Finder();
$finder->files()->in(__DIR__ . '/Fixtures/Ambiguous');
@ -139,4 +135,11 @@ class ClassMapGeneratorTest extends \PHPUnit_Framework_TestCase
}
$this->assertEquals($expected, $actual, $message);
}
private function checkIfFinderIsAvailable()
{
if (!class_exists('Symfony\\Component\\Finder\\Finder')) {
$this->markTestSkipped('Finder component is not available');
}
}
}