diff --git a/tests/PHPSemVerChecker/Analyzer/ClassPropertyAnalyzerTest.php b/tests/PHPSemVerChecker/Analyzer/ClassPropertyAnalyzerTest.php index a337e22..5907256 100644 --- a/tests/PHPSemVerChecker/Analyzer/ClassPropertyAnalyzerTest.php +++ b/tests/PHPSemVerChecker/Analyzer/ClassPropertyAnalyzerTest.php @@ -74,7 +74,7 @@ public function testPropertyAdded() $report = $analyzer->analyze($classBefore, $classAfter); $context = 'class'; - $expectedLevel = Level::MAJOR; + $expectedLevel = Level::MINOR; Assert::assertDifference($report, $context, $expectedLevel); $this->assertSame('V019', $report[$context][$expectedLevel][0]->getCode()); $this->assertSame('[public] Property has been added.', $report[$context][$expectedLevel][0]->getReason()); diff --git a/tests/PHPSemVerChecker/Analyzer/TraitPropertyAnalyzerTest.php b/tests/PHPSemVerChecker/Analyzer/TraitPropertyAnalyzerTest.php index a10a5bd..879f788 100644 --- a/tests/PHPSemVerChecker/Analyzer/TraitPropertyAnalyzerTest.php +++ b/tests/PHPSemVerChecker/Analyzer/TraitPropertyAnalyzerTest.php @@ -75,7 +75,7 @@ public function testPropertyAdded() $report = $analyzer->analyze($traitBefore, $traitAfter); $context = 'trait'; - $expectedLevel = Level::MAJOR; + $expectedLevel = Level::MINOR; Assert::assertDifference($report, $context, $expectedLevel); $this->assertSame('V049', $report[$context][$expectedLevel][0]->getCode()); $this->assertSame('[public] Property has been added.', $report[$context][$expectedLevel][0]->getReason());