cvs: pear /MDB2/tests MDB2_manager_testcase.php

From: Date: Wed, 12 Oct 2005 17:22:22 +0000
Subject: cvs: pear /MDB2/tests MDB2_manager_testcase.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-35468@lists.php.net to get a copy of this message
lsmith Wed Oct 12 13:22:22 2005 EDT Modified files: /pear/MDB2/tests MDB2_manager_testcase.php Log: - lets kill the old code http://cvs.php.net/diff.php/pear/MDB2/tests/MDB2_manager_testcase.php?r1=1.17&r2=1.18&ty=u Index: pear/MDB2/tests/MDB2_manager_testcase.php diff -u pear/MDB2/tests/MDB2_manager_testcase.php:1.17 pear/MDB2/tests/MDB2_manager_testcase.php:1.18 --- pear/MDB2/tests/MDB2_manager_testcase.php:1.17 Wed Oct 12 06:22:22 2005 +++ pear/MDB2/tests/MDB2_manager_testcase.php Wed Oct 12 13:22:21 2005 @@ -42,7 +42,7 @@ // | Lorenzo Alberton <l dot alberton at quipo dot it> | // +----------------------------------------------------------------------+ // -// $Id: MDB2_manager_testcase.php,v 1.17 2005/10/12 10:22:22 quipo Exp $ +// $Id: MDB2_manager_testcase.php,v 1.18 2005/10/12 17:22:21 lsmith Exp $ require_once 'MDB2/Schema.php'; @@ -55,12 +55,6 @@ var $database; //contains the MDB2 object of the db once we have connected var $db; - //contains the name of the driver_test schema - var $driver_input_file = 'driver_test.schema'; - //contains the name of the lob_test schema - var $lob_input_file = 'lob_test.schema'; - //contains the name of the extension to use for backup schemas - var $backup_extension = '.before'; //test table name (it is dynamically created/dropped) var $table = 'newtable'; //test table fields @@ -134,63 +128,6 @@ return in_array($this->table, $tables); } -/* - function testCreateDatabase() { - if (!$this->methodExists($this->manager->db->manager, 'dropDatabase')) { - return; - } - $this->db->manager->db->expectError('*'); - $result = $this->db->manager->db->manager->dropDatabase($this->database); - $this->db->manager->db->popExpect(); - if (PEAR::isError($result)) { - $this->assertTrue(false, 'Database dropping failed: please manually delete the database if needed'); - } - if (!$this->methodExists($this->db->manager, 'updateDatabase')) { - return; - } - $result = $this->db->manager->updateDatabase( - $this->driver_input_file, - false, - array('create' =>'1', 'name' => $this->database) - ); - if (!PEAR::isError($result)) { - $result = $this->db->manager->updateDatabase( - $this->lob_input_file, - false, - array('create' =>'0', 'name' => $this->database) - ); - } - $this->assertFalse(PEAR::isError($result), 'Error creating database'); - } - - function testUpdateDatabase() { - if (!$this->methodExists($this->db->manager, 'updateDatabase')) { - return; - } - $backup_file = $this->driver_input_file.$this->backup_extension; - if (!file_exists($backup_file)) { - copy($this->driver_input_file, $backup_file); - } - $result = $this->db->manager->updateDatabase( - $this->driver_input_file, - $backup_file, - array('create' =>'0', 'name' =>$this->database) - ); - if (!PEAR::isError($result)) { - $backup_file = $this->lob_input_file.$this->backup_extension; - if (!file_exists($backup_file)) { - copy($this->lob_input_file, $backup_file); - } - $result = $this->db->manager->updateDatabase( - $this->lob_input_file, - $backup_file, - array('create' =>'0', 'name' => $this->database) - ); - } - $this->assertFalse(PEAR::isError($result), 'Error updating database'); - } -*/ - /** * Create a sample table, test the new fields, and drop it. */

« previous php.pear.cvs (#35468) next »