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