File tree Expand file tree Collapse file tree 3 files changed +2
-15
lines changed
tests/PhpWordTests/Writer/PDF Expand file tree Collapse file tree 3 files changed +2
-15
lines changed Original file line number Diff line number Diff line change 2727/**
2828 * TCPDF writer.
2929 *
30- * @deprecated 0.13.0 Use `DomPDF` or `MPDF` instead.
3130 * @see http://www.tcpdf.org/
3231 * @since 0.11.0
3332 */
Original file line number Diff line number Diff line change 1818
1919namespace PhpOffice \PhpWord \Writer \PDF ;
2020
21- /**
22- * TCPDF writer.
23- *
24- * @deprecated 0.13.0 Use `DomPDF` or `MPDF` instead.
25- * @see http://www.tcpdf.org/
26- * @since 0.11.0
27- */
2821class TcpdfNoDie extends TCPDF
2922{
3023 /**
Original file line number Diff line number Diff line change 2525
2626/**
2727 * Test class for PhpOffice\PhpWord\Writer\PDF\TCPDF.
28- *
29- * @runTestsInSeparateProcesses
3028 */
3129class TCPDFTest extends \PHPUnit \Framework \TestCase
3230{
@@ -85,20 +83,17 @@ public function testSectionPageBreak(): void
8583 }
8684
8785 /** @runInSeparateProcess */
88- public function testExcpetionRatherThanDie (): void
86+ public function testExceptionRatherThanDie (): void
8987 {
9088 $ this ->expectException (Exception::class);
9189 $ this ->expectExceptionMessage ('Could not include font definition file ' );
92- $ file = __DIR__ . '/../../_files/tcpdf.pdf ' ;
9390 $ phpWord = new PhpWord ();
9491 $ section1 = $ phpWord ->addSection ();
9592 $ section1 ->addText ('This is section 1. ' );
9693 $ section2 = $ phpWord ->addSection ();
9794 $ section2 ->addText ('This is section 2. ' );
9895 $ writer = new PDF \TcpdfNoDie ($ phpWord );
9996 $ writer ->setFont ('xyz ' );
100- $ writer ->save ($ file );
101- self ::assertFileExists ($ file );
102- unlink ($ file );
97+ $ writer ->save ('php://memory ' );
10398 }
10499}
You can’t perform that action at this time.
0 commit comments