���Root Mod By V1rus_Alfa
User / IP
:
216.73.216.158
Host / Server
:
195.214.235.115 / npln.ir
System
:
Linux damavand.pws-dns.net 5.14.0-503.35.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 4 05:23:43 EDT 2025 x86_64
Command
|
Upload
|
Mass Deface
|
Create
:
/
home2
/
cutunixc
/
repositories
/
cutunix-shot
/
vendor
/
misterspelik
/
mpdf
/
tests
/
Mpdf
/
Viewing: PDFATest.php
<?php namespace Mpdf; class PDFATest extends \Yoast\PHPUnitPolyfills\TestCases\TestCase { /** * @var \Mpdf\Mpdf */ private $mpdf; protected function set_up() { $this->mpdf = new Mpdf(); $this->mpdf->writeHtml('<html><body>PDFA Test</body></html>'); $this->mpdf->PDFA = true; $this->mpdf->PDFAauto = true; } public function testOriginalPDFA_1B() { $output = $this->mpdf->Output(null, 'S'); $output = preg_replace('/rdf:about="uuid:[\w-]+"/', 'rdf:about="uuid:fake-uuid"', $output); $expected = ' <rdf:Description rdf:about="uuid:fake-uuid" xmlns:pdfaid="http://www.aiim.org/pdfa/ns/id/" >' . "\n"; $expected .= ' <pdfaid:part>1</pdfaid:part>' . "\n"; $expected .= ' <pdfaid:conformance>B</pdfaid:conformance>' . "\n"; $expected .= ' <pdfaid:amd>2005</pdfaid:amd>' . "\n"; $expected .= ' </rdf:Description>' . "\n"; $this->assertStringContainsString($expected, $output); } public function testPDFA_Version_Fail() { $this->mpdf->PDFAversion = '11'; try { $this->mpdf->Output(null, 'S'); } catch (\Exception $e) { $this->assertSame('PDFA version (11) is not valid. (Use: 1-B, 3-B, etc.)', $e->getMessage()); } } public function testOriginalPDFA_3B() { $this->mpdf->PDFAversion = '3-B'; $output = $this->mpdf->Output(null, 'S'); $output = preg_replace('/rdf:about="uuid:[\w-]+"/', 'rdf:about="uuid:fake-uuid"', $output); $expected = ' <rdf:Description rdf:about="uuid:fake-uuid" xmlns:pdfaid="http://www.aiim.org/pdfa/ns/id/" >' . "\n"; $expected .= ' <pdfaid:part>3</pdfaid:part>' . "\n"; $expected .= ' <pdfaid:conformance>B</pdfaid:conformance>' . "\n"; $expected .= ' </rdf:Description>' . "\n"; $this->assertStringContainsString($expected, $output); } }
Coded With 💗 by
0x6ick Mod By V1rus_Alfa