Skip to content

Commit d1c8fb1

Browse files
committed
Remove unmeaningful test case
Signed-off-by: iifawzi <iifawzie@gmail.com>
1 parent 3f8b220 commit d1c8fb1

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/Tools/ContextGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ public static function formatName($name)
312312

313313
$version = array_map('intval', str_split($versionString, 2));
314314
/* Remove trailing zero */
315-
if (count($version) > 0 && $version[count($version) - 1] === 0) {
315+
if ($version[count($version) - 1] === 0) {
316316
$version = array_slice($version, 0, count($version) - 1);
317317
}
318318

tests/Tools/ContextGeneratorTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ class ContextGeneratorTest extends TestCase
1515
{
1616
public function testFormatName(): void
1717
{
18-
$name = ContextGenerator::formatName('MySql');
19-
$this->assertEquals('MySQL ', $name);
20-
2118
$name = ContextGenerator::formatName('MySql80000');
2219
$this->assertEquals('MySQL 8.0', $name);
2320

0 commit comments

Comments
 (0)