phpmyadmin/test/classes/Properties/PropertyItemTest.php
Maurício Meneghini Fauth 555ea56cbd
Make PHPUnit's assertions stricter
Backports #18993 to QA_5_2.

This makes merging QA_5_2 into master easier.

Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
2024-10-12 15:33:45 -03:00

42 lines
831 B
PHP

<?php
declare(strict_types=1);
namespace PhpMyAdmin\Tests\Properties;
use PhpMyAdmin\Properties\PropertyItem;
use PhpMyAdmin\Tests\AbstractTestCase;
use PHPUnit\Framework\MockObject\MockObject;
/**
* @covers \PhpMyAdmin\Properties\PropertyItem
*/
class PropertyItemTest extends AbstractTestCase
{
/** @var PropertyItem|MockObject */
protected $stub;
/**
* Configures global environment.
*/
protected function setUp(): void
{
parent::setUp();
$this->stub = $this->getMockForAbstractClass(PropertyItem::class);
}
/**
* tearDown for test cases
*/
protected function tearDown(): void
{
parent::tearDown();
unset($this->stub);
}
public function testGetGroup(): void
{
self::assertNull($this->stub->getGroup());
}
}