/** * tries to add a foreignkey to a column and references to a column with * an other datatype */ public function testInsertOnWrongDataType() { $foreignKey = new ForeignKey(); $foreignKey->TABLE_SCHEMA = 'tabletest'; $foreignKey->TABLE_NAME = 'product3'; $foreignKey->COLUMN_NAME = 'price'; $foreignKey->setReferences('tabletest.product4.var'); $this->assertFalse($foreignKey->save()); }