Skip to content

Commit e0f100c

Browse files
committed
added unit test for document class
Signed-off-by: Christoph Massmann <[email protected]>
1 parent 67f3b8f commit e0f100c

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

src/Test/DocumentTest.php

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?php
2+
/**
3+
* @section LICENSE
4+
* This file is created by vianetz <[email protected]>.
5+
* The code is distributed under the GPL license.
6+
*
7+
* If you did not receive a copy of the license and are unable to
8+
* obtain it through the world-wide-web, please send an email
9+
* to [email protected] so we can send you a copy immediately.
10+
*
11+
* @package Vianetz\Pdf
12+
* @author Christoph Massmann, <[email protected]>
13+
* @link https://www.vianetz.com
14+
* @copyright Copyright (c) since 2006 vianetz - Dipl.-Ing. C. Massmann (https://www.vianetz.com)
15+
* @license http://www.gnu.org/licenses/gpl-3.0.txt GNU GENERAL PUBLIC LICENSE
16+
*/
17+
18+
namespace Vianetz\Pdf\Test;
19+
20+
use PHPUnit\Framework\TestCase;
21+
use Vianetz\Pdf\Model\Document;
22+
23+
final class DocumentTest extends TestCase
24+
{
25+
/**
26+
* @return void
27+
*/
28+
public function testSetPdfAttachmentFile()
29+
{
30+
$document = new Document();
31+
$document->setPdfAttachmentFile('attachment1.pdf');
32+
33+
$this->assertEquals('attachment1.pdf', $document->getPdfAttachmentFile());
34+
}
35+
}

0 commit comments

Comments
 (0)