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

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

public testInvalidSemverPresetWithNoBranches ( string $source, string $target, string $invalidPart )
$source string
$target string
$invalidPart string
    public function testInvalidSemverPresetWithNoBranches($source, $target, $invalidPart)
    {
        $validator = new MergeWorkflowValidator(MergeWorkflowValidator::PRESET_SEMVER);
        $this->setExpectedException(MergeWorkflowException::class, sprintf('Semver: %1$s version of source "%2$s" is higher then %1$s version of target "%3$s".', $invalidPart, $source, $target));
        $validator->validate($source, $target);
    }