@@ -136,10 +136,10 @@ public function testEscapePdfText(string $input, string $expected): void {
136136
137137 public static function providerEscapePdfText (): array {
138138 return [
139- 'plain text is unchanged ' => ['hello world ' , 'hello world ' ],
140- 'backslash is doubled ' => ['back \\slash ' , 'back \\\\slash ' ],
141- 'opening parenthesis is escaped ' => ['open(paren ' , 'open \\(paren ' ],
142- 'closing parenthesis is escaped ' => ['close)paren ' , 'close \\)paren ' ],
139+ 'plain text is unchanged ' => ['hello world ' , 'hello world ' ],
140+ 'backslash is doubled ' => ['back \\slash ' , 'back \\\\slash ' ],
141+ 'opening parenthesis is escaped ' => ['open(paren ' , 'open \\(paren ' ],
142+ 'closing parenthesis is escaped ' => ['close)paren ' , 'close \\)paren ' ],
143143 'multiple special chars in one string ' => ['a \\b(c)d ' , 'a \\\\b \\(c \\)d ' ],
144144 ];
145145 }
@@ -153,11 +153,11 @@ public function testHasExistingSignatures(string $pdfContent, bool $expected): v
153153
154154 public static function providerHasExistingSignatures (): array {
155155 return [
156- 'ByteRange marker signals existing signature ' => ['/ByteRange [0 0 0 0] ' , true ],
157- '/Type /Sig signals existing signature ' => ['/Type /Sig ' , true ],
158- '/DocMDP signals existing signature ' => ['/DocMDP ' , true ],
159- '/Perms signals existing signature ' => ['/Perms ' , true ],
160- 'plain PDF content has no signature ' => ['%PDF-1.4 startxref 0 %%EOF ' , false ],
156+ 'ByteRange marker signals existing signature ' => ['/ByteRange [0 0 0 0] ' , true ],
157+ '/Type /Sig signals existing signature ' => ['/Type /Sig ' , true ],
158+ '/DocMDP signals existing signature ' => ['/DocMDP ' , true ],
159+ '/Perms signals existing signature ' => ['/Perms ' , true ],
160+ 'plain PDF content has no signature ' => ['%PDF-1.4 startxref 0 %%EOF ' , false ],
161161 ];
162162 }
163163
0 commit comments