Skip to content

Commit 4aee0b6

Browse files
committed
Update test to phpUnit 10+
1 parent 07dd360 commit 4aee0b6

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

tests/PhpunitPluginTest.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@
88
use Phpcq\PluginApi\Version10\Configuration\PluginConfigurationInterface;
99
use Phpcq\PluginApi\Version10\DiagnosticsPluginInterface;
1010
use Phpcq\PluginApi\Version10\EnvironmentInterface;
11+
use PHPUnit\Framework\Attributes\CoversNothing;
1112
use PHPUnit\Framework\TestCase;
1213

13-
/**
14-
* @coversNothing
15-
*/
14+
#[CoversNothing()]
1615
final class PhpunitPluginTest extends TestCase
1716
{
1817
private function instantiate(): DiagnosticsPluginInterface
@@ -27,7 +26,7 @@ public function testPluginName(): void
2726

2827
public function testPluginDescribesConfig(): void
2928
{
30-
$configOptionsBuilder = $this->getMockForAbstractClass(PluginConfigurationBuilderInterface::class);
29+
$configOptionsBuilder = $this->getMockBuilder(PluginConfigurationBuilderInterface::class)->getMock();
3130

3231
$this->instantiate()->describeConfiguration($configOptionsBuilder);
3332

@@ -37,8 +36,8 @@ public function testPluginDescribesConfig(): void
3736

3837
public function testPluginCreatesDiagnosticTasks(): void
3938
{
40-
$config = $this->getMockForAbstractClass(PluginConfigurationInterface::class);
41-
$environment = $this->getMockForAbstractClass(EnvironmentInterface::class);
39+
$config = $this->getMockBuilder(PluginConfigurationInterface::class)->getMock();
40+
$environment = $this->getMockBuilder(EnvironmentInterface::class)->getMock();
4241

4342
$this->instantiate()->createDiagnosticTasks($config, $environment);
4443

0 commit comments

Comments
 (0)