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