Phergie_Plugin_TestCase::requirePlugin PHP Method

requirePlugin() public method

Records an actual plugin requirement.
public requirePlugin ( string $name ) : Phergie_Plugin_Abstract
$name string Short name of the plugin required as a dependency
return Phergie_Plugin_Abstract Mock instance of the specified plugin
    public function requirePlugin($name)
    {
        if (!isset($this->mockPlugins[$name])) {
            $this->actualRequiredPlugins[] = $name;
            $this->mockPlugins[$name] = $this->getMock('Phergie_Plugin_' . ucfirst($name));
        }
        return $this->mockPlugins[$name];
    }