public function test_appendMetadata() { $currentMetadata = 'hello-'; $newMessage = 'newMessage'; $this->sut->setMetadata($currentMetadata); $this->sut->appendMetadata($newMessage); $this->assertEquals($currentMetadata . $newMessage, $this->sut->getMetadata()); }
public function validate() { return $this->basicInfo->validate() && $this->objectBlob->validate(); }
public function toArray() { return [self::BASIC_INFO => $this->basicInfo->toArray(), self::BLOB => $this->blob->toArray()]; }