Skip to content

Commit

Permalink
Fix tests after changing levels for props in traits
Browse files Browse the repository at this point in the history
  • Loading branch information
emmetog committed Jan 4, 2018
1 parent 46f1c38 commit b4f496b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit b4f496b

Please sign in to comment.