--TEST-- Check for protocol buffers decode implementations --FILE-- _properties)) { $result = $this->_properties['value']; } return $result; } public function setValue($value) { $this->_properties['value'] = $value; } /** * get descriptor for protocol buffers * * @return array */ public static function getDescriptor() { // return nothing. } } $b = new Tutorial_Bytes(); $droid = file_get_contents(dirname(__FILE__) . DIRECTORY_SEPARATOR . "fixtures" . DIRECTORY_SEPARATOR . "android_logo.gif"); $b->setValue($droid); try { ProtocolBuffers::encode($b); } catch (ProtocolBuffersInvalidProtocolBufferException $e) { echo "OK"; } --EXPECT-- OK