public static function build($component, array $options = array()) { if (is_array($component)) { return implode(', ', $component); } else { return $component->old . ' TO ' . $component->new; } }
public function testBuild() { $component = RenameOperation::parse(new Parser(), $this->getTokensList('a TO b, c TO d')); $this->assertEquals(RenameOperation::build($component), 'a TO b, c TO d'); }