/** * @depends testOptionsAndParameters */ function testCmdMerge() { $o = $this->obj; $merge = new Command(); $merge1 = new Command(); $o->param('orig', 'orig_value'); $merge->param('merge', 'merge_value'); $o->set($merge); $this->assertEquals('orig "orig_value" merge "merge_value"', $o); $merge1->param('merge1', 'merge1_value'); $o->set($merge1); $this->assertEquals('orig "orig_value" merge "merge_value" merge1 "merge1_value"', $o->toString()); }