Created
December 5, 2012 13:42
-
-
Save isidromerayo/4215588 to your computer and use it in GitHub Desktop.
symfony2 UsuarioRepositoryTest
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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