1
0
mirror of https://github.com/phpmyadmin/phpmyadmin.git synced 2026-10-28 07:41:55 +03:00

Split Util class regarding the responsabilities (#15567)

PhpMyAdmin\Util is a very huge class with a lot of responsabilities.

There is a lot of work to split it, but this may be just a small start, waiting for a more normalized code.

* Split Util class regarding the responsabilities
* Split the buttonOrImage function

Signed-off-by: Hugues Peccatte <hugues.peccatte@gmail.com>
This commit is contained in:
Hugues Peccatte
2019-11-22 00:20:05 +01:00
committed by Maurício Meneghini Fauth
parent 3b0eff7035
commit 3255e4ad7b
124 changed files with 4245 additions and 3501 deletions

View File

@@ -10,10 +10,10 @@ namespace PhpMyAdmin\Tests;
use PhpMyAdmin\Core;
use PhpMyAdmin\Encoding;
use PhpMyAdmin\Html\MySQLDocumentation;
use PhpMyAdmin\SqlQueryForm;
use PhpMyAdmin\Template;
use PhpMyAdmin\Url;
use PhpMyAdmin\Util;
use PHPUnit\Framework\TestCase;
/**
@@ -129,9 +129,9 @@ class SqlQueryFormTest extends TestCase
$html
);
//validate 3: showMySQLDocu
//validate 3: MySQLDocumentation::show
$this->assertStringContainsString(
Util::showMySQLDocu('SELECT'),
MySQLDocumentation::show('SELECT'),
$html
);