Exemplo n.º 1
0
 public function testSetMergeAndClear()
 {
     $data = new Dwoo_Data();
     $data->setData(array('foo'));
     $this->assertEquals(array('foo'), $data->getData());
     $data->mergeData(array('baz'), array('bar', 'boo' => 'moo'));
     $this->assertEquals(array('foo', 'baz', 'bar', 'boo' => 'moo'), $data->getData());
     $data->clear();
     $this->assertEquals(array(), $data->getData());
 }