public function setup() { $this->migrationOutput = m::mock('Symfony\\Component\\Console\\Output\\OutputInterface')->shouldIgnoreMissing(); $this->migrationDialogHelper = m::mock('Symfony\\Component\\Console\\Helper\\DialogHelper')->shouldIgnoreMissing(); $this->migration = new Migration(1); $this->migration->setOutput($this->migrationOutput); $this->migration->setDialogHelper($this->migrationDialogHelper); }