From b4f496bb39c8592f88c1b3ee691185e3b9508685 Mon Sep 17 00:00:00 2001 From: Emmet O'Grady Date: Thu, 4 Jan 2018 07:51:01 +0000 Subject: [PATCH] Fix tests after changing levels for props in traits --- tests/PHPSemVerChecker/Analyzer/ClassPropertyAnalyzerTest.php | 2 +- tests/PHPSemVerChecker/Analyzer/TraitPropertyAnalyzerTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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());