Example #1
0
 /**
  * Constructor.
  *
  * @throws SchemaException
  *
  * @param array $dbConfig The database configuration.
  */
 public function __construct(array $dbConfig)
 {
     $this->config = $dbConfig;
     $this->db = Db::factory($dbConfig);
 }
Example #2
0
 /**
  * @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');
 }