/** * Return a new entity by its name * * @param string $name The name of the entity * @return EntityInterface */ public function getEntity($name) { return EntityFactory::build($name, $this); }
/** * @expectedException PhraseanetSDK\Exception\InvalidArgumentException */ public function testExceptionBuild() { $em = $this->getMock('PhraseanetSDK\\EntityManager', array(), array(), '', false); EntityFactory::build('unknow_class_type', $em); }