32 lines
726 B
PHP
32 lines
726 B
PHP
|
<?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));
|
||
|
}
|
||
|
}
|