cvs: pear /MDB2/tests MDB2_testcase.php

From: Date: Tue, 02 May 2006 15:02:54 +0000
Subject: cvs: pear /MDB2/tests MDB2_testcase.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-39946@lists.php.net to get a copy of this message
lsmith Tue May 2 15:02:54 2006 UTC Modified files: /pear/MDB2/tests MDB2_testcase.php Log: - do not check if the table exists in clearTables() .. they need to exist for the test suite to work at all and so it just makes development harder to do this check as it requires implementation of the manager module http://cvs.php.net/viewcvs.cgi/pear/MDB2/tests/MDB2_testcase.php?r1=1.9&r2=1.10&diff_format=u Index: pear/MDB2/tests/MDB2_testcase.php diff -u pear/MDB2/tests/MDB2_testcase.php:1.9 pear/MDB2/tests/MDB2_testcase.php:1.10 --- pear/MDB2/tests/MDB2_testcase.php:1.9 Tue May 2 14:59:25 2006 +++ pear/MDB2/tests/MDB2_testcase.php Tue May 2 15:02:54 2006 @@ -41,7 +41,7 @@ // | Author: Paul Cooper <pgc@ucecom.com> | // +----------------------------------------------------------------------+ // -// $Id: MDB2_testcase.php,v 1.9 2006/05/02 14:59:25 lsmith Exp $ +// $Id: MDB2_testcase.php,v 1.10 2006/05/02 15:02:54 lsmith Exp $ class MDB2_TestCase extends PHPUnit_TestCase { //contains the dsn of the database we are testing @@ -98,10 +98,10 @@ if (!$this->clear_tables) { return; } - if ($this->tableExists('users') && PEAR::isError($this->db->exec('DELETE FROM users'))) { + if PEAR::isError($this->db->exec('DELETE FROM users'))) { $this->assertTrue(false, 'Error deleting from table users'); } - if ($this->tableExists('files') && PEAR::isError($this->db->exec('DELETE FROM files'))) { + if (PEAR::isError($this->db->exec('DELETE FROM files'))) { $this->assertTrue(false, 'Error deleting from table users'); } }

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