public function testCompareMultipleDifferences() { $c1 = new Column(); $c1->getDomain()->copy($this->platform->getDomainForType('INTEGER')); $c1->setNotNull(false); $c2 = new Column(); $c2->getDomain()->copy($this->platform->getDomainForType('DOUBLE')); $c2->getDomain()->replaceScale(2); $c2->getDomain()->replaceSize(3); $c2->setNotNull(true); $c2->getDomain()->setDefaultValue(new ColumnDefaultValue(123, ColumnDefaultValue::TYPE_VALUE)); $expectedChangedProperties = array('type' => array('INTEGER', 'DOUBLE'), 'sqlType' => array('INTEGER', 'DOUBLE'), 'scale' => array(NULL, 2), 'size' => array(NULL, 3), 'notNull' => array(false, true), 'defaultValueType' => array(NULL, ColumnDefaultValue::TYPE_VALUE), 'defaultValueValue' => array(NULL, 123)); $this->assertEquals($expectedChangedProperties, PropelColumnComparator::compareColumns($c1, $c2)); }