public function test_it_outputs_nothing_without_operation() { $expectedOutput = <<<TEXT <fg=green>No changelogs summary</fg=green> TEXT; $this->assertTrue($this->SUT->isEmpty()); $this->assertSame($expectedOutput, $this->SUT->getOutput()); }
private function handleCommit() { if ($this->outputter->isEmpty()) { return; } switch ($this->config->getCommitAuto()) { case 'never': return; case 'ask': if ($this->io->askConfirmation('<info>Would you like to commit the update? </info>[<comment>no</comment>]: ', false)) { $this->doCommit(); } break; case 'always': $this->doCommit(); } }