/** * Returns the string representation of the difference. * * @return string */ public function __toString() { $ret = ''; $ret .= sprintf(" %s:\n", $this->fromColumn->getFullyQualifiedName()); $ret .= " modifiedProperties:\n"; foreach ($this->changedProperties as $key => $value) { $ret .= sprintf(" %s: %s\n", $key, json_encode($value)); } return $ret; }
public function testGetFullyQualifiedName() { $column = new Column('title'); $column->setTable($this->getTableMock('books')); $this->assertSame('books.TITLE', $column->getFullyQualifiedName()); }