���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
/
Issues
/
Viewing: Issue491Test.php
<?php namespace Issues; use Mpdf\Mpdf; class Issue491Test extends \Mpdf\BaseMpdfTest { public function htmlProvider() { return [ [ '<table> <tbody> <tr><td>4</td></tr> <tr><td>6</td></tr> </tbody> <tfoot> <tr> <td>#SUM#{colsum0}#SUM#</td> </tr> </tfoot> </table>', '10' ], [ '<table> <tbody> <tr><td>12,54</td></tr> <tr><td>0,12</td></tr> </tbody> <tfoot> <tr> <td>#SUM#{colsum2}#SUM#</td> </tr> </tfoot> </table>', '12.66' ], [ '<table> <tbody> <tr><td>1.999,39€</td></tr> <tr><td>3.214,01€</td></tr> </tbody> <tfoot> <tr> <td>#SUM#{colsum2}#SUM#</td> </tr> </tfoot> </table>', '5213.40' ], [ '<table> <tbody> <tr><td>1 215 951,21 €</td></tr> <tr><td>US$ 2,104,092.99</td></tr> </tbody> <tfoot> <tr> <td>#SUM#{colsum0}#SUM#</td> </tr> </tfoot> </table>', '3320044' ] ]; } /** * @dataProvider htmlProvider */ public function testColsumInt($html, $expected) { $this->mpdf->setCompression(false); $this->mpdf->WriteHtml($html); $out = $this->mpdf->Output('', 'S'); $iMatchCnt = preg_match('/#SUM#(.*)#SUM#/', $out, $aMatches); $this->assertEquals(1, $iMatchCnt, "could not find colsum for '".$html."'"); $this->assertEquals($expected, $aMatches[1]); } }
Coded With 💗 by
0x6ick Mod By V1rus_Alfa