public function testSetMetaInfo() { $m = new ae_MediaModel(); $m->setMetaInfo('{"file_size":400,"hocus":"pocus"}'); $this->assertEquals($m->getMetaInfo(), array('file_size' => 400, 'hocus' => 'pocus')); $m->setMetaInfo(array('key' => 'value', 'lorem' => 2, 'bool' => FALSE)); $this->assertEquals($m->getMetaInfo(), array('key' => 'value', 'lorem' => 2, 'bool' => FALSE)); $this->setExpectedException('Exception'); $m->setMetaInfo('bogus'); }