/**
  * Test getTotalPostsByUser
  */
 public function testGetTotalPostsByUser()
 {
     $post_dao = new PostMySQLDAO();
     $total_posts = $post_dao->getTotalPostsByUser('ev', 'twitter');
     $this->assertEqual($total_posts, 40);
 }
 /**
  * Test getTotalPostsByUser
  */
 public function testGetTotalPostsByUser()
 {
     $pdao = new PostMySQLDAO();
     $total_posts = $pdao->getTotalPostsByUser('ev', 'twitter');
     $this->assertTrue($total_posts == 41);
 }
Example #3
0
 /**
  * Test getTotalPostsByUser
  */
 function testGetTotalPostsByUser()
 {
     $pdao = new PostMySQLDAO();
     $total_posts = $pdao->getTotalPostsByUser(13);
     $this->assertTrue($total_posts == 41);
 }