getPlugin(); $this->assertSame($plugin, $result); } /** * Test that the toArray method in PluginStamp class returns the correct * array with 'plugin' key that was passed to the class constructor during instantiation. */ public function testToArrayMethod(): void { $plugin = 'myPlugin'; $pluginStamp = new PluginStamp($plugin); $result = $pluginStamp->toArray(); $this->assertCount(1, $result); $this->assertArrayHasKey('plugin', $result); $this->assertSame($plugin, $result['plugin']); } }