fixed unit tests
This commit is contained in:
parent
3bc3115d8c
commit
c6ed593022
@ -32,7 +32,7 @@ class ContainerTest extends TestCase
|
|||||||
$loader->ormLoad(array(), $container);
|
$loader->ormLoad(array(), $container);
|
||||||
|
|
||||||
$dumper = new PhpDumper($container);
|
$dumper = new PhpDumper($container);
|
||||||
$code = $dumper->dump();
|
$code = $dumper->dump(array('class' => 'DoctrineBundleTestsProjectServiceContainer'));
|
||||||
eval(str_replace('<?php', null, $code));
|
eval(str_replace('<?php', null, $code));
|
||||||
return new \ProjectServiceContainer;
|
return new \ProjectServiceContainer;
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user