/** * Writes the trailer. */ private function writeTrailer() { $this->objectWriter->ensureBlankLine(); $this->objectWriter->writeRawLine('trailer'); $this->objectWriter->startDictionary(); $this->objectWriter->writeName('Id'); $this->objectWriter->startArray(); $this->objectWriter->writeHexadecimalString($this->permanentFileIdentifier); $this->objectWriter->writeHexadecimalString($this->changingFileIdentifier); $this->objectWriter->endArray(); if (null !== $this->encryption) { $this->objectWriter->writeName('Encrypt'); $this->encryption->writeEncryptDictionary($this->objectWriter); } $this->objectWriter->endDictionary(); }
public function testWriteHexadecimalString() { $this->objectWriter->writeHexadecimalString('foo'); $this->assertSame('<666f6f>', $this->getFileObjectData()); }
/** * @iterations 10000 */ public function writeHexadecimalString() { $this->objectWriter->writeHexadecimalString('foo'); }