예제 #1
0
 /**
  * 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();
 }
예제 #2
0
 public function testWriteHexadecimalString()
 {
     $this->objectWriter->writeHexadecimalString('foo');
     $this->assertSame('<666f6f>', $this->getFileObjectData());
 }
예제 #3
0
 /**
  * @iterations 10000
  */
 public function writeHexadecimalString()
 {
     $this->objectWriter->writeHexadecimalString('foo');
 }