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

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

    public function test_it_adds_operation()
    {
        $this->assertAttributeSame([], 'operations', $this->SUT);
        $operation1 = new FakeOperation('');
        $this->SUT->addOperation($operation1);
        $this->assertAttributeSame([$operation1], 'operations', $this->SUT);
        $operation2 = new FakeOperation('');
        $this->SUT->addOperation($operation2);
        $this->assertAttributeSame([$operation1, $operation2], 'operations', $this->SUT);
    }