/** * @see sfBaseTask */ protected function process(sfCommandManager $commandManager, $options) { parent::process($commandManager, $options); if (isset($options['with-svn'])) { $this->subversionBinary = $options['with-svn']; } }
/** * @see sfTaskExtraBaseTask */ public function askAndValidate($question, sfValidatorBase $validator, array $options = array()) { if ($this->interactive) { return sfTaskExtraBaseTask::doAskAndValidate($this, $question, $validator, $options); } else { return $validator->clean(isset($options['value']) ? $options['value'] : null); } }
/** * @see sfTask */ public function logSection($section, $message, $size = null, $style = 'INFO') { is_null($this->wrappedTask) ? parent::logSection($section, $message, $size, $style) : $this->wrappedTask->logSection($section, $message, $size, $style); }
/** * @see sfTaskExtraBaseTask */ public function checkPluginExists($plugin, $boolean = true) { return sfTaskExtraBaseTask::doCheckPluginExists($this, $plugin, $boolean); }
$t->fail('::doCheckPluginExists() throws an exception if the plugin does not exist'); } catch (Exception $e) { $t->pass('::doCheckPluginExists() throws an exception if the plugin does not exist'); } try { sfTaskExtraBaseTask::doCheckPluginExists($task, 'NonexistantPlugin', false); $t->pass('::doCheckPluginExists() does not throw an excpetion if a plugin does not exists and is passed false'); } catch (Exception $e) { $t->fail('::doCheckPluginExists() does not throw an excpetion if a plugin does not exists and is passed false'); $t->diag(' ' . $e->getMessage()); } try { sfTaskExtraBaseTask::doCheckPluginExists($task, 'StandardPlugin'); $t->pass('::doCheckPluginExists() does not throw an exception if a plugin exists'); } catch (Exception $e) { $t->fail('::doCheckPluginExists() does not throw an exception if a plugin exists'); $t->diag(' ' . $e->getMessage()); } try { sfTaskExtraBaseTask::doCheckPluginExists($task, 'StandardPlugin', false); $t->fail('::doCheckPluginExists() throws an exception if a plugin exists and is passed false'); } catch (Exception $e) { $t->pass('::doCheckPluginExists() throws an exception if a plugin exists and is passed false'); } try { sfTaskExtraBaseTask::doCheckPluginExists($task, 'SpecialPlugin'); $t->pass('::doCheckPluginExists() does not throw a plugin is enabled with a special path'); } catch (Exception $e) { $t->fail('::doCheckPluginExists() does not throw a plugin is enabled with a special path'); $t->diag(' ' . $e->getMessage()); }