/** * Tests Varien_Object->toArray() */ public function testToArray() { $this->assertEquals(array(), $this->_object->toArray()); $this->assertEquals(array('key' => null), $this->_object->toArray(array('key'))); $this->_object->setData(array('key1' => 'value1', 'key2' => 'value2')); $this->assertEquals(array('key1' => 'value1'), $this->_object->toArray(array('key1'))); $this->assertEquals(array('key2' => 'value2'), $this->_object->__toArray(array('key2'))); }