Phergie_Plugin_TestCase::assertRemovesPlugin PHP 메소드

assertRemovesPlugin() 공개 메소드

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
리턴 void
    public function assertRemovesPlugin($plugin)
    {
        if (is_array($plugin)) {
            $this->expectedRemovedPlugins = array_merge($this->expectedRemovedPlugins, $plugin);
        } else {
            $this->expectedRemovedPlugins[] = $plugin;
        }
    }