Skip to content

Commit 57fc73f

Browse files
committed
Rename ContextTest to TestContext for phpunit 10 to be happy
The name ending with "Test" makes phpunit think it's a test Signed-off-by: William Desportes <williamdes@wdes.fr>
1 parent dd51bda commit 57fc73f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/Tools/ContextGeneratorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ public function testGenerate(): void
6060
$options = [
6161
'keywords' => $readWords,
6262
'name' => 'MYSQL TEST',
63-
'class' => 'ContextTest',
63+
'class' => 'TestContext',
6464
'link' => 'https://www.phpmyadmin.net/contribute',
6565
];
6666
$generatedTemplate = ContextGenerator::generate($options);
67-
$expectedTemplate = file_get_contents(getcwd() . '/tests/Tools/templates/ContextTest.php');
67+
$expectedTemplate = file_get_contents(getcwd() . '/tests/Tools/templates/TestContext.php');
6868
$this->assertEquals($expectedTemplate, $generatedTemplate);
6969
}
7070
}

tests/Tools/templates/ContextTest.php renamed to tests/Tools/templates/TestContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*
1616
* @see https://www.phpmyadmin.net/contribute
1717
*/
18-
class ContextTest extends Context
18+
class TestContext extends Context
1919
{
2020
/**
2121
* List of keywords.

0 commit comments

Comments
 (0)