tikiwiki/packages/tiki-pkg-mpdf/setasign/fpdi/tests/unit/PdfReader/PageBoundariesTest.php

32 lines
726 B
PHP
Raw Permalink Normal View History

2023-11-20 21:52:04 +01:00
<?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));
}
}