File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ protected function setUp() {
8383 * This method is called after a test is executed.
8484 */
8585 protected function tearDown () {
86- $ this ->object ->query ('TRUNCATE TABLE unit_test ' );
86+ $ this ->object ->query ('DROP TABLE unit_test ' );
8787 $ this ->object = null ;
8888 } // tearDown
8989
@@ -230,7 +230,6 @@ public function testDelete()
230230 public function testSelecting ()
231231 {
232232 $ this ->object ->quick_connect (self ::TEST_DB_USER , self ::TEST_DB_PASSWORD , self ::TEST_DB_NAME );
233- $ this ->assertEquals (0 , $ this ->object ->query ('DROP TABLE IF EXITS unit_test ' ));
234233 $ this ->object ->query ('CREATE TABLE unit_test(id integer, test_key varchar(50), PRIMARY KEY (ID)) ' );
235234 $ this ->object ->insert ('unit_test ' , array ('id ' =>8 , 'test_key ' =>'testing 8 ' ));
236235 $ this ->object ->insert ('unit_test ' , array ('id ' =>9 , 'test_key ' =>'testing 9 ' ));
You can’t perform that action at this time.
0 commit comments