cvs: pear(MDB_1) /MDB/tests MDB_api_testcase.php MDB_usage_testcase.php

From: Date: Tue, 23 Sep 2003 12:52:45 +0000
Subject: cvs: pear(MDB_1) /MDB/tests MDB_api_testcase.php MDB_usage_testcase.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-13009@lists.php.net to get a copy of this message
lsmith Tue Sep 23 08:52:45 2003 EDT Modified files: (Branch: MDB_1) /pear/MDB/tests MDB_usage_testcase.php MDB_api_testcase.php Log: - minor fixes Index: pear/MDB/tests/MDB_usage_testcase.php diff -u pear/MDB/tests/MDB_usage_testcase.php:1.28.4.1 pear/MDB/tests/MDB_usage_testcase.php:1.28.4.2 --- pear/MDB/tests/MDB_usage_testcase.php:1.28.4.1 Thu Sep 18 13:32:54 2003 +++ pear/MDB/tests/MDB_usage_testcase.php Tue Sep 23 08:52:45 2003 @@ -41,7 +41,7 @@ // | Author: Paul Cooper <pgc@ucecom.com> | // +----------------------------------------------------------------------+ // -// $Id: MDB_usage_testcase.php,v 1.28.4.1 2003/09/18 17:32:54 lsmith Exp $ +// $Id: MDB_usage_testcase.php,v 1.28.4.2 2003/09/23 12:52:45 lsmith Exp $ class MDB_Usage_TestCase extends PHPUnit_TestCase { //contains the dsn of the database we are testing @@ -526,8 +526,6 @@ for ($start_value = 1; $start_value < 4; $start_value++) { $sequence_name = "test_sequence_$start_value"; - $this->db->dropSequence($sequence_name); - $result = $this->db->createSequence($sequence_name, $start_value); $this->assertTrue(!MDB::isError($result), "Error creating sequence $sequence_name with start value $start_value"); @@ -548,8 +546,6 @@ // Test ondemand creation of sequences $sequence_name = 'test_ondemand'; - - $this->db->dropSequence($sequence_name); for ($sequence_value = 1; $sequence_value < 4; $sequence_value++) { $value = $this->db->nextId($sequence_name); Index: pear/MDB/tests/MDB_api_testcase.php diff -u pear/MDB/tests/MDB_api_testcase.php:1.13.4.1 pear/MDB/tests/MDB_api_testcase.php:1.13.4.2 --- pear/MDB/tests/MDB_api_testcase.php:1.13.4.1 Fri Sep 19 11:50:46 2003 +++ pear/MDB/tests/MDB_api_testcase.php Tue Sep 23 08:52:45 2003 @@ -41,7 +41,7 @@ // | Author: Paul Cooper <pgc@ucecom.com> | // +----------------------------------------------------------------------+ // -// $Id: MDB_api_testcase.php,v 1.13.4.1 2003/09/19 15:50:46 lsmith Exp $ +// $Id: MDB_api_testcase.php,v 1.13.4.2 2003/09/23 12:52:45 lsmith Exp $ class MDB_Api_TestCase extends PHPUnit_TestCase { //contains the dsn of the database we are testing @@ -187,7 +187,7 @@ if(MDB::isError($err)) { $this->assertTrue(FALSE, 'Error testFetch: '.$err->getMessage().' - '.$err->getUserInfo()); } - $this->assertNotNull($err); + $this->assertNull($err); } function testNumCols() {

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