html2pdf mit composer hinzugefügt
This commit is contained in:
34
vendor/spipu/html2pdf/Tests/Parsing/TokenTest.php
vendored
Normal file
34
vendor/spipu/html2pdf/Tests/Parsing/TokenTest.php
vendored
Normal file
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
/**
|
||||
* Html2Pdf Library - Tests
|
||||
*
|
||||
* HTML => PDF converter
|
||||
* distributed under the OSL-3.0 License
|
||||
*
|
||||
* @package Html2pdf
|
||||
* @author Laurent MINGUET <webmaster@html2pdf.fr>
|
||||
* @copyright 2017 Laurent MINGUET
|
||||
*/
|
||||
|
||||
namespace Spipu\Html2Pdf\Tests\Parsing;
|
||||
|
||||
use PHPUnit_Framework_TestCase;
|
||||
use Spipu\Html2Pdf\Parsing\Token;
|
||||
|
||||
/**
|
||||
* Class TokenTest
|
||||
*/
|
||||
class TokenTest extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
|
||||
/**
|
||||
* Test if it works
|
||||
*/
|
||||
public function testOk()
|
||||
{
|
||||
$token = new Token('hello', 'world', 45);
|
||||
$this->assertSame('hello', $token->getType());
|
||||
$this->assertSame('world', $token->getData());
|
||||
$this->assertSame(45, $token->getLine());
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user