public static function newInstance($name, $container) { $instance = new self(); $instance->setName($name); $instance->setContainer($container); return $instance; }
protected function setUp() { $this->container = new Container(); $this->definedTask = DefinedTask::newInstance("test", $this->container); $this->input = new ArrayInput(array("command" => "test")); $this->output = new BufferedOutput(); }