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