Пример #1
0
 public static function setUpBeforeClass()
 {
     $configDir = __DIR__ . '/../../../config';
     static::$structure = Structure::createFromYaml($configDir . '/structure.yml');
     static::$conn = (require_once $configDir . '/config.php');
     static::$mf = new ManagerFactory(static::$conn, static::$structure, true);
     static::$userManager = static::$mf->getManager('user');
 }
Пример #2
0
 /**
  * @expectedException \Exception
  * @expectedExceptionMessage 数据表 NotExistTable 不存在
  */
 public function testGetManagerException()
 {
     static::$mf->getManager('NotExistTable');
 }