Skip to content
This repository has been archived by the owner on Aug 14, 2019. It is now read-only.

Commit

Permalink
phpunit self::assert... -> $this->assert...
Browse files Browse the repository at this point in the history
  • Loading branch information
NovikovRoman committed May 27, 2016
1 parent 83612e0 commit b4ed5ae
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/SimpleRatingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ public function testVotes($productId, $userId, $score)
throw $e;
}
$sr->setVote($score, $userId);
self::assertEquals($sr->isVoted($userId), true);
self::assertEquals($sr->getRating($userId), $score);
$this->assertEquals($sr->isVoted($userId), true);
$this->assertEquals($sr->getRating($userId), $score);
}

/**
Expand All @@ -63,7 +63,7 @@ public function testGetId($productId)
} catch (Exception $e) {
throw $e;
}
self::assertEquals($sr->getID(), $productId);
$this->assertEquals($sr->getID(), $productId);
}

/**
Expand All @@ -79,7 +79,7 @@ public function testSetId($productId)
throw $e;
}
$sr->setID($productId);
self::assertEquals($sr->getID(), $productId);
$this->assertEquals($sr->getID(), $productId);
}

public function votesUsersProvider()
Expand Down Expand Up @@ -120,7 +120,7 @@ public function testAverage($productId)
} catch (Exception $e) {
throw $e;
}
self::assertEquals($sr->calc(), $average);
$this->assertEquals($sr->calc(), $average);
}

public function productProvider()
Expand All @@ -145,7 +145,7 @@ public function testIsVoted($productId)
throw $e;
}
foreach (self::$arUsersVotes as $userId => $score) {
self::assertTrue($sr->isVoted($userId));
$this->assertTrue($sr->isVoted($userId));
}
}

Expand All @@ -162,7 +162,7 @@ public function testIsVoted($productId)
throw $e;
}
$sr->removeAll();
self::assertTrue(true);
$this->assertTrue(true);
}*/

/**
Expand Down

0 comments on commit b4ed5ae

Please sign in to comment.