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