for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Managlea\Tests;
use Managlea\Component\EntityManagerFactoryInterface;
use Managlea\Component\EntityManagerInterface;
class EntityManagerFactoryTest extends BaseTestCase
{
/**
* @test
* @expectedException \Exception
*/
public function createFromResourceNameNoMapping()
$entityManagerFactory = $this->getEntityManagerFactory();
$entityManagerFactory->create('foo');
}
public function createFromResourceNameNoService()
$this->assertTrue($entityManagerFactory instanceof EntityManagerFactoryInterface);
public function createFromResourceName()
$entityManager = $entityManagerFactory->create('doctrine_entity_manager');
$this->assertTrue($entityManager instanceof EntityManagerInterface);