File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88use Phpcq \PluginApi \Version10 \Configuration \PluginConfigurationInterface ;
99use Phpcq \PluginApi \Version10 \DiagnosticsPluginInterface ;
1010use Phpcq \PluginApi \Version10 \EnvironmentInterface ;
11+ use PHPUnit \Framework \Attributes \CoversNothing ;
1112use PHPUnit \Framework \TestCase ;
1213
13- /**
14- * @coversNothing
15- */
14+ #[CoversNothing()]
1615final 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
You can’t perform that action at this time.
0 commit comments