phpmyadmin/test/classes/Html/MySQLDocumentationTest.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

28 lines
770 B
PHP

<?php
declare(strict_types=1);
namespace PhpMyAdmin\Tests\Html;
use PhpMyAdmin\Html\MySQLDocumentation;
use PhpMyAdmin\Tests\AbstractTestCase;
/**
* @covers \PhpMyAdmin\Html\MySQLDocumentation
*/
class MySQLDocumentationTest extends AbstractTestCase
{
public function testShowDocumentation(): void
{
$GLOBALS['server'] = '99';
$GLOBALS['cfg']['ServerDefault'] = 1;
self::assertSame(
'<a href="./url.php?url=https%3A%2F%2Fdocs.phpmyadmin.net%2Fen'
. '%2Flatest%2Fpage.html%23anchor" target="documentation"><img src="themes/dot.gif"'
. ' title="Documentation" alt="Documentation" class="icon ic_b_help"></a>',
MySQLDocumentation::showDocumentation('page', 'anchor')
);
}
}