Gush\Tests\Validator\MergeWorkflowValidatorTest::testInvalidGitFlowPresetWithNoBranches PHP Метод

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

    public function testInvalidGitFlowPresetWithNoBranches($source)
    {
        $validator = new MergeWorkflowValidator(MergeWorkflowValidator::PRESET_GIT_FLOW);
        $this->setExpectedException(MergeWorkflowException::class, 'Git-flow: Only "develop", "hotfix-" or "release-" branches are allowed to be merged into master.');
        $validator->validate($source, 'master');
    }