Pyrech\ComposerChangelogs\tests\OutputterTest::test_it_outputs_with_no_supported_url_generator PHP Метод

test_it_outputs_with_no_supported_url_generator() публичный Метод

    public function test_it_outputs_with_no_supported_url_generator()
    {
        $this->SUT = new Outputter($this->operationHandlers, [new FakeUrlGenerator(false, '', '')]);
        $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

 - Output handler 2, operation 2

TEXT;
        $this->assertFalse($this->SUT->isEmpty());
        $this->assertSame($expectedOutput, $this->SUT->getOutput());
    }