diff options
author | Maurício Meneghini Fauth <mauricio@fauth.dev> | 2019-12-14 11:05:18 -0300 |
---|---|---|
committer | Maurício Meneghini Fauth <mauricio@fauth.dev> | 2019-12-14 11:05:18 -0300 |
commit | 9d3d3b3e39162a8b5329e7a446b2f359b6e99c9d (patch) | |
tree | eaf5c629483d0b6363efb81e15821b47086f3637 /tests/Utils | |
parent | 4c945b89aad24ee3c73ae94c06f2bc858a858956 (diff) | |
download | sql-parser-9d3d3b3e39162a8b5329e7a446b2f359b6e99c9d.zip sql-parser-9d3d3b3e39162a8b5329e7a446b2f359b6e99c9d.tar.gz sql-parser-9d3d3b3e39162a8b5329e7a446b2f359b6e99c9d.tar.bz2 |
Reference classes via a use statement
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
Diffstat (limited to 'tests/Utils')
-rw-r--r-- | tests/Utils/CLITest.php | 3 | ||||
-rw-r--r-- | tests/Utils/FormatterTest.php | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/tests/Utils/CLITest.php b/tests/Utils/CLITest.php index ec69ad9..6d0ea4c 100644 --- a/tests/Utils/CLITest.php +++ b/tests/Utils/CLITest.php @@ -4,6 +4,7 @@ declare(strict_types=1); namespace PhpMyAdmin\SqlParser\Tests\Utils; use PhpMyAdmin\SqlParser\Tests\TestCase; +use PhpMyAdmin\SqlParser\Utils\CLI; class CLITest extends TestCase { @@ -22,7 +23,7 @@ class CLITest extends TestCase */ public function testGetopt() { - $cli = new \PhpMyAdmin\SqlParser\Utils\CLI(); + $cli = new CLI(); $this->assertEquals( $cli->getopt('', []), [] diff --git a/tests/Utils/FormatterTest.php b/tests/Utils/FormatterTest.php index 08b7377..0c09215 100644 --- a/tests/Utils/FormatterTest.php +++ b/tests/Utils/FormatterTest.php @@ -5,6 +5,7 @@ namespace PhpMyAdmin\SqlParser\Tests\Utils; use PhpMyAdmin\SqlParser\Tests\TestCase; use PhpMyAdmin\SqlParser\Utils\Formatter; +use ReflectionMethod; class FormatterTest extends TestCase { @@ -51,7 +52,7 @@ class FormatterTest extends TestCase 'formats' => $overriding, ]; - $reflectionMethod = new \ReflectionMethod($formatter, 'getMergedOptions'); + $reflectionMethod = new ReflectionMethod($formatter, 'getMergedOptions'); $reflectionMethod->setAccessible(true); $this->assertEquals($expectedOptions, $reflectionMethod->invoke($formatter, $overridingOptions)); } |