function testScoreFor() { $leaderboard = new Leaderboard('leaderboard'); for ($i = 1; $i <= Leaderboard::DEFAULT_PAGE_SIZE + 1; $i++) { $leaderboard->addMember("member_{$i}", $i); } $this->assertEquals(14, $leaderboard->scoreFor('member_14')); }