Last change
on this file since 418 was 347, checked in by roby, 4 years ago |
Aggiornamento per compatibilità con php7.4
|
File size:
678 bytes
|
Line | |
---|
1 | <?php
|
---|
2 | /**
|
---|
3 | * Html2Pdf Library - Tests
|
---|
4 | *
|
---|
5 | * HTML => PDF converter
|
---|
6 | * distributed under the OSL-3.0 License
|
---|
7 | *
|
---|
8 | * @package Html2pdf
|
---|
9 | * @author Laurent MINGUET <webmaster@html2pdf.fr>
|
---|
10 | * @copyright 2017 Laurent MINGUET
|
---|
11 | */
|
---|
12 |
|
---|
13 | namespace Spipu\Html2Pdf\Tests\Parsing;
|
---|
14 |
|
---|
15 | use Spipu\Html2Pdf\Parsing\Token;
|
---|
16 |
|
---|
17 | /**
|
---|
18 | * Class TokenTest
|
---|
19 | */
|
---|
20 | class TokenTest extends \PHPUnit_Framework_TestCase
|
---|
21 | {
|
---|
22 |
|
---|
23 | /**
|
---|
24 | * Test if it works
|
---|
25 | */
|
---|
26 | public function testOk()
|
---|
27 | {
|
---|
28 | $token = new Token('hello', 'world', 45);
|
---|
29 | $this->assertSame('hello', $token->getType());
|
---|
30 | $this->assertSame('world', $token->getData());
|
---|
31 | $this->assertSame(45, $token->getLine());
|
---|
32 | }
|
---|
33 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.