コード例 #1
0
ファイル: Schema.php プロジェクト: rzajac/schema
 /**
  * Constructor.
  *
  * @throws SchemaException
  *
  * @param array $dbConfig The database configuration.
  */
 public function __construct(array $dbConfig)
 {
     $this->config = $dbConfig;
     $this->db = Db::factory($dbConfig);
 }
コード例 #2
0
ファイル: Db_Test.php プロジェクト: rzajac/schema
 /**
  * @covers ::dbGetTableNames
  *
  * @expectedException \Kicaj\Schema\SchemaException
  * @expectedExceptionMessage Table 'testschemalib.not_existing' doesn't exist
  */
 public function test_dbGetTableDefinition_error()
 {
     // Given
     $db = Db::factory(self::getSchemaConfig('SCHEMA1'));
     // Then
     $db->dbGetTableDefinition('not_existing');
 }