示例#1
0
 public function stats()
 {
     $this->data['maxTweets'] = $this->model->getMostTweetsInAMonth();
     $this->data['totalTweets'] = $this->model->getTotalTweets();
     $this->data['totalFavoriteTweets'] = $this->model->getTotalFavoriteTweets();
     $this->data['totalClients'] = $this->model->getTotalClients();
     $this->data['maxClients'] = $this->model->getMostPopularClientTotal();
     $this->data['pageType'] = 'stats';
     $this->render('stats.php');
 }
示例#2
0
 public function testAddNoTweets()
 {
     $model = new Model($this->db, 'amt_');
     $this->assertEquals(0, $model->addTweets(array()));
 }