tikiwiki/packages/tiki-pkg-mpdf/setasign/fpdi/tests/unit/PdfReader/PageBoundariesTest.php
2023-11-20 20:52:04 +00:00

32 lines
726 B
PHP
Executable File

<?php
namespace setasign\Fpdi\unit\PdfReader;
use PHPUnit\Framework\TestCase;
use setasign\Fpdi\PdfReader\PageBoundaries;
class PageBoundariesTest extends TestCase
{
public function isValidNameProvider()
{
return [
['MediaBox', true],
['CropBox', true],
['ArtBox', true],
['TrimBox', true],
['BleedBox', true],
['FontBox', false],
['', false]
];
}
/**
* @param $name
* @param $expectedResult
* @dataProvider isValidNameProvider
*/
public function testIsValidName($name, $expectedResult)
{
$this->assertEquals($expectedResult, PageBoundaries::isValidName($name));
}
}