/** * @covers ::getInstance * * @expectedException \BadMethodCallException */ public function testGetInstance() { $plugin_manager = $this->getMock(PluginManagerInterface::class); $this->sut = new PluginManagerDecorator($plugin_manager); $this->sut->getInstance([]); }