Browse Source

fixed unit tests

Fabien Potencier 14 năm trước cách đây
mục cha
commit
c6ed593022

+ 1 - 1
src/Symfony/Bundle/DoctrineBundle/Tests/ContainerTest.php

@@ -32,7 +32,7 @@ class ContainerTest extends TestCase
         $loader->ormLoad(array(), $container);
 
         $dumper = new PhpDumper($container);
-        $code = $dumper->dump();
+        $code = $dumper->dump(array('class' => 'DoctrineBundleTestsProjectServiceContainer'));
         eval(str_replace('<?php', null, $code));
         return new \ProjectServiceContainer;
     }

+ 3 - 3
src/Symfony/Bundle/DoctrineMongoDBBundle/Tests/ContainerTest.php

@@ -9,7 +9,7 @@
  * file that was distributed with this source code.
  */
 
-namespace Symfony\Bundle\DoctrineBundle\Tests;
+namespace Symfony\Bundle\DoctrineMongoDBBundle\Tests;
 
 use Symfony\Component\DependencyInjection\Dumper\PhpDumper;
 use Symfony\Component\DependencyInjection\ContainerBuilder;
@@ -31,7 +31,7 @@ class ContainerTest extends TestCase
         $loader->mongodbLoad(array(), $container);
 
         $dumper = new PhpDumper($container);
-        $code = $dumper->dump();
+        $code = $dumper->dump(array('class' => 'DoctrineMongoDBBundleTestsProjectServiceContainer'));
         eval(str_replace('<?php', null, $code));
         return new \ProjectServiceContainer;
     }
@@ -55,4 +55,4 @@ class ContainerTest extends TestCase
         $this->assertInstanceOf('Doctrine\Common\Cache\ArrayCache', $container->get('doctrine.odm.mongodb.cache'));
         $this->assertInstanceOf('Doctrine\ODM\MongoDB\DocumentManager', $container->get('doctrine.odm.mongodb.document_manager'));
     }
-}
+}