Explorar o código

[FrameworkBundle] made a huge speed optimization for functional tests

Fabien Potencier %!s(int64=14) %!d(string=hai) anos
pai
achega
1454d61ad5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Symfony/Bundle/FrameworkBundle/Test/WebTestCase.php

+ 1 - 1
src/Symfony/Bundle/FrameworkBundle/Test/WebTestCase.php

@@ -115,7 +115,7 @@ abstract class WebTestCase extends \PHPUnit_Framework_TestCase
         $dir = isset($_SERVER['KERNEL_DIR']) ? $_SERVER['KERNEL_DIR'] : static::getPhpUnitXmlDir();
 
         $finder = new Finder();
-        $finder->name('*Kernel.php')->in($dir);
+        $finder->name('*Kernel.php')->depth(0)->in($dir);
         if (!count($finder)) {
             throw new \RuntimeException('You must override the WebTestCase::createKernel() method.');
         }