Skip to content

Commit 6536f5c

Browse files
committed
Minor Tweaks
1 parent a96f0a3 commit 6536f5c

File tree

3 files changed

+2
-15
lines changed

3 files changed

+2
-15
lines changed

src/PhpWord/Writer/PDF/TCPDF.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
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
*/

src/PhpWord/Writer/PDF/TcpdfNoDie.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,6 @@
1818

1919
namespace 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-
*/
2821
class TcpdfNoDie extends TCPDF
2922
{
3023
/**

tests/PhpWordTests/Writer/PDF/TCPDFTest.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@
2525

2626
/**
2727
* Test class for PhpOffice\PhpWord\Writer\PDF\TCPDF.
28-
*
29-
* @runTestsInSeparateProcesses
3028
*/
3129
class 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
}

0 commit comments

Comments
 (0)