Esempio n. 1
0
 /**
  * @covers \Klout\Model\Score::populate
  */
 public function testPopulateWithoutScoreDelta()
 {
     $data = $this->scoreData;
     unset($data['scoreDelta']);
     $score = new Score();
     $score->populate($this->kloutId, $data);
     $this->assertEquals($this->kloutId, $score->getKloutId());
     $this->assertEquals($this->scoreData['score'], $score->getScore());
     $this->assertEquals($this->scoreData['bucket'], $score->getBucket());
     $this->assertNull($score->getDeltas());
 }