Example #1
0
 function tearDown()
 {
     parent::tearDown();
     $this->logger->close();
 }
Example #2
0
 function tearDown()
 {
     parent::tearDown();
 }
Example #3
0
 /**
  * Add test post to database
  */
 function setUp()
 {
     parent::setUp();
     $q = "INSERT INTO tt_posts (post_id, author_user_id, author_username, author_fullname, author_avatar, post_text, source, pub_date, mention_count_cache, retweet_count_cache) VALUES (1001, 13, 'ev', 'Ev Williams', 'avatar.jpg', 'This is a test post', 'web', '2006-01-01 00:05:00', " . rand(0, 4) . ", 5);";
     $this->db->exec($q);
 }
Example #4
0
 function tearDown()
 {
     parent::tearDown();
     //make sure our db_type is set to the default...
     Config::getInstance()->setValue('db_type', 'mysql');
 }
Example #5
0
 /**
  * Destructs the database, so it can be reconstructed for next test
  */
 function tearDown()
 {
     parent::tearDown();
     $this->DAO = null;
 }
Example #6
0
 public function tearDown()
 {
     parent::tearDown();
     $this->logger->close();
     $this->DAO = null;
 }
 function tearDown()
 {
     parent::tearDown();
     $_REQUEST["page"] = null;
     $_REQUEST["v"] = null;
 }