public function test_it_outputs_right_text() { $this->SUT->addOperation(new FakeOperation('operation 1')); $this->SUT->addOperation(new FakeOperation('operation 2')); $expectedOutput = <<<TEXT <fg=green>Changelogs summary:</fg=green> - Output handler 2, operation 1 /compare-url2 /release-url2 - Output handler 2, operation 2 /compare-url2 /release-url2 TEXT; $this->assertFalse($this->SUT->isEmpty()); $this->assertSame($expectedOutput, $this->SUT->getOutput()); }