예제 #1
0
 function tearDown()
 {
     parent::tearDown();
     $this->logger->close();
 }
예제 #2
0
 function tearDown()
 {
     parent::tearDown();
 }
예제 #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);
 }
예제 #4
0
 function tearDown()
 {
     parent::tearDown();
     //make sure our db_type is set to the default...
     Config::getInstance()->setValue('db_type', 'mysql');
 }
예제 #5
0
 /**
  * Destructs the database, so it can be reconstructed for next test
  */
 function tearDown()
 {
     parent::tearDown();
     $this->DAO = null;
 }
예제 #6
0
 public function tearDown()
 {
     parent::tearDown();
     $this->logger->close();
     $this->DAO = null;
 }
 function tearDown()
 {
     parent::tearDown();
     $_REQUEST["page"] = null;
     $_REQUEST["v"] = null;
 }