cvs: pear /MDB2/tests MDB2_manager_testcase.php

From: Date: Fri, 14 Oct 2005 19:18:28 +0000
Subject: cvs: pear /MDB2/tests MDB2_manager_testcase.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-35539@lists.php.net to get a copy of this message
quipo Fri Oct 14 15:18:28 2005 EDT Modified files: /pear/MDB2/tests MDB2_manager_testcase.php Log: fix error messages http://cvs.php.net/diff.php/pear/MDB2/tests/MDB2_manager_testcase.php?r1=1.24&r2=1.25&ty=u Index: pear/MDB2/tests/MDB2_manager_testcase.php diff -u pear/MDB2/tests/MDB2_manager_testcase.php:1.24 pear/MDB2/tests/MDB2_manager_testcase.php:1.25 --- pear/MDB2/tests/MDB2_manager_testcase.php:1.24 Fri Oct 14 12:30:37 2005 +++ pear/MDB2/tests/MDB2_manager_testcase.php Fri Oct 14 15:18:26 2005 @@ -42,7 +42,7 @@ // | Lorenzo Alberton <l dot alberton at quipo dot it> | // +----------------------------------------------------------------------+ // -// $Id: MDB2_manager_testcase.php,v 1.24 2005/10/14 16:30:37 lsmith Exp $ +// $Id: MDB2_manager_testcase.php,v 1.25 2005/10/14 19:18:26 quipo Exp $ require_once 'MDB2/Schema.php'; @@ -176,11 +176,11 @@ $name = 'simpleindex'; $result = $this->db->manager->createIndex($this->table, $name, $index); if (PEAR::isError($result)) { - $this->assertFalse(true, 'Error creating unique index'); + $this->assertFalse(true, 'Error creating index'); } else { $indices = $this->db->manager->listTableIndexes($this->table); $this->assertFalse(PEAR::isError($indices), 'Error listing indices'); - $this->assertTrue(in_array($name, $indices), 'Error dropping index'); + $this->assertTrue(in_array($name, $indices), 'Error creating index'); } } @@ -206,7 +206,7 @@ } else { $indices = $this->db->manager->listTableIndexes($this->table); $this->assertFalse(PEAR::isError($indices), 'Error listing indices'); - $this->assertTrue(in_array($name, $indices), 'Error dropping index'); + $this->assertTrue(in_array($name, $indices), 'Error creating unique index'); } }

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