Phergie_Plugin_TestCase::assertRemovesPlugin PHP Method

assertRemovesPlugin() public method

Modifies the plugin handler to include an expectation of a plugin being removed. Note that this must be called BEFORE executing the plugin code that may remove that plugin.
public assertRemovesPlugin ( string | Phergie_Plugin_Abstract | array $plugin ) : void
$plugin string | Phergie_Plugin_Abstract | array Short name of the plugin or the plugin instance to be removed or an array of multiple instances of either
return void
    public function assertRemovesPlugin($plugin)
    {
        if (is_array($plugin)) {
            $this->expectedRemovedPlugins = array_merge($this->expectedRemovedPlugins, $plugin);
        } else {
            $this->expectedRemovedPlugins[] = $plugin;
        }
    }