propel-bundle/Tests/TestCase.php

35 lines
930 B
PHP
Raw Normal View History

2013-11-04 01:09:31 +01:00
<?php
/**
* This file is part of the PropelBundle package.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @license MIT License
*/
2016-02-11 19:14:03 +01:00
namespace Propel\Bundle\PropelBundle\Tests;
2013-11-04 01:09:31 +01:00
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Definition;
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag;
2013-11-04 01:09:31 +01:00
/**
* TestCase
*/
class TestCase extends \PHPUnit_Framework_TestCase
{
public function getContainer()
{
$container = new ContainerBuilder(new ParameterBag(array(
'kernel.debug' => false,
'kernel.root_dir' => __DIR__ . '/../',
)));
$container->setParameter('propel.configuration', array());
$container->setDefinition('propel', new Definition('Propel\Runtime\Propel'));
return $container;
}
2013-11-04 01:09:31 +01:00
}