fixed unit tests
This commit is contained in:
parent
3bc3115d8c
commit
c6ed593022
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in New Issue