Skip to content

Instantly share code, notes, and snippets.

@isidromerayo
Created December 5, 2012 13:42
Show Gist options
  • Save isidromerayo/4215588 to your computer and use it in GitHub Desktop.
Save isidromerayo/4215588 to your computer and use it in GitHub Desktop.
symfony2 UsuarioRepositoryTest
<?php
namespace Hcuv\UsuarioBundle\Tests\Entity;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
/**
* Description of UsuarioRepositoryTest
*
*/
class UsuarioRepositoryTest extends WebTestCase
{
/**
* @var \Doctrine\ORM\EntityManager
*/
private $em;
public function setUp()
{
static::$kernel = static::createKernel();
static::$kernel->boot();
$this->em = static::$kernel->getContainer()->get('doctrine.orm.entity_manager');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment