Example #1
0
 /**
  * @covers ::getColumnByName
  *
  * @expectedException \Kicaj\Schema\SchemaException
  * @expectedExceptionMessage Table table1 does not have column not_existing.
  */
 public function test_getColumnByName_error()
 {
     // When
     $table = new Table($this->getFixtureRawData('table1.sql'), $this->getMock(DatabaseItf::class));
     // Then
     $table->getColumnByName('not_existing');
 }