/** * Test * * @return void */ public function testSaveWithEmptyFilesVar() { $data = serialize(array('original' => array('value' => '/media/files/test/test.jpg', 'width' => 10, 'height' => 10, 'html' => 2, 'mime' => 'image/jpeg'), '223x112' => array('value' => '/media/files/test/test-223x112.jpg', 'width' => 223, 'height' => 112, 'html' => 2, 'mime' => 'image/jpeg', 'x' => 0, 'y' => 0), '800x600' => array('value' => '/media/files/test/test.jpg', 'width' => 223, 'height' => 112, 'html' => 2, 'mime' => 'image/jpeg', 'x' => 0, 'y' => 0))); $this->object->getRequest()->getPost()->set($this->object->getName() . '-hidden', $data); $this->object->save(); $this->assertInternalType('string', $this->object->getValue()); }