public function testRemovePluginAndGetPluginsWithObjectInput() { $options = array('option1' => 1); $this->client->registerPlugin('testplugin', __NAMESPACE__ . '\\MyClientPlugin', $options); $plugin = $this->client->getPlugin('testplugin'); $plugins = $this->client->getPlugins(); $this->assertEquals(array('testplugin' => $plugin), $plugins); $this->client->removePlugin($plugin); $plugins = $this->client->getPlugins(); $this->assertEquals(array(), $plugins); }