35 lines
771 B
PHP
35 lines
771 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace PhpMyAdmin\Tests\Properties\Options\Items;
|
|
|
|
use PhpMyAdmin\Properties\Options\Items\BoolPropertyItem;
|
|
use PhpMyAdmin\Properties\Options\OptionsPropertyItem;
|
|
use PhpMyAdmin\Tests\AbstractTestCase;
|
|
use PHPUnit\Framework\Attributes\CoversClass;
|
|
|
|
#[CoversClass(OptionsPropertyItem::class)]
|
|
class PropertyItemsTest extends AbstractTestCase
|
|
{
|
|
public function testBoolText(): void
|
|
{
|
|
$object = new BoolPropertyItem('', 'Text');
|
|
|
|
self::assertSame(
|
|
'Text',
|
|
$object->getText(),
|
|
);
|
|
}
|
|
|
|
public function testBoolName(): void
|
|
{
|
|
$object = new BoolPropertyItem('xname');
|
|
|
|
self::assertSame(
|
|
'xname',
|
|
$object->getName(),
|
|
);
|
|
}
|
|
}
|