cvs: pear /Auth package.xml /Auth/tests auth_container_db_options.php auth_container_imap_options.php auth_container_mdb2_options.php
auth_container_mdb_options.php auth_container_pop3_options.php auth_container_pop3a_options.php mysql_test_db.sql tests.php

From: Date: Wed, 22 Feb 2006 00:34:11 +0000
Subject: cvs: pear /Auth package.xml /Auth/tests auth_container_db_options.php auth_container_imap_options.php auth_container_mdb2_options.php
auth_container_mdb_options.php auth_container_pop3_options.php auth_container_pop3a_options.php mysql_test_db.sql tests.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-38481@lists.php.net to get a copy of this message
aashley Wed Feb 22 00:34:11 2006 UTC Added files: /pear/Auth/tests mysql_test_db.sql Modified files: /pear/Auth package.xml /pear/Auth/tests auth_container_db_options.php auth_container_imap_options.php auth_container_mdb2_options.php auth_container_mdb_options.php auth_container_pop3_options.php auth_container_pop3a_options.php tests.php Log: Updated test cases http://cvs.php.net/viewcvs.cgi/pear/Auth/package.xml?r1=1.74&r2=1.75&diff_format=u Index: pear/Auth/package.xml diff -u pear/Auth/package.xml:1.74 pear/Auth/package.xml:1.75 --- pear/Auth/package.xml:1.74 Wed Feb 22 00:14:51 2006 +++ pear/Auth/package.xml Wed Feb 22 00:34:11 2006 @@ -57,6 +57,7 @@ * MDB & MDB2 Backends: Start DB object before using quoting features in all functions. + * Updated test cases. Passes all tests for DB, MDB and MDB2. * Fixed Bug #6851: Double quotes caused by incorrect use of DB::quoteSmart() and developer being asleep at his computer. ]]> http://cvs.php.net/viewcvs.cgi/pear/Auth/tests/auth_container_db_options.php?r1=1.2&r2=1.3&diff_format=u Index: pear/Auth/tests/auth_container_db_options.php diff -u pear/Auth/tests/auth_container_db_options.php:1.2 pear/Auth/tests/auth_container_db_options.php:1.3 --- pear/Auth/tests/auth_container_db_options.php:1.2 Mon Oct 11 11:23:23 2004 +++ pear/Auth/tests/auth_container_db_options.php Wed Feb 22 00:34:11 2006 @@ -9,14 +9,15 @@ $this->options['cryptType'] = "md5"; */ $options = array( - 'dsn'=>'mysql://yavo:lexusOne@odin.netsmart.local/authtest', - 'table'=>'users', - 'usernamecol'=>'userlogin', - 'passwordcol'=>'userpassword', + 'dsn'=>'mysql://root:@localhost/authtest', + 'table'=>'temp', + 'usernamecol'=>'username', + 'passwordcol'=>'password', + 'cryptType'=>'md5', 'db_fields'=>'*' ); $extra_options['username'] = 'test_user'; $extra_options['passwd'] = 'test_user'; -?> \ No newline at end of file +?> http://cvs.php.net/viewcvs.cgi/pear/Auth/tests/auth_container_imap_options.php?r1=1.1&r2=1.2&diff_format=u Index: pear/Auth/tests/auth_container_imap_options.php diff -u pear/Auth/tests/auth_container_imap_options.php:1.1 pear/Auth/tests/auth_container_imap_options.php:1.2 --- pear/Auth/tests/auth_container_imap_options.php:1.1 Sun Dec 14 22:23:11 2003 +++ pear/Auth/tests/auth_container_imap_options.php Wed Feb 22 00:34:11 2006 @@ -5,7 +5,7 @@ 'port'=>'110' ); -$extra_options['username'] = 'yavo@example.com'; -$extra_options['passwd'] = 'test'; +$extra_options['username'] = 'test_user'; +$extra_options['passwd'] = 'test_user'; -?> \ No newline at end of file +?> http://cvs.php.net/viewcvs.cgi/pear/Auth/tests/auth_container_mdb2_options.php?r1=1.1&r2=1.2&diff_format=u Index: pear/Auth/tests/auth_container_mdb2_options.php diff -u pear/Auth/tests/auth_container_mdb2_options.php:1.1 pear/Auth/tests/auth_container_mdb2_options.php:1.2 --- pear/Auth/tests/auth_container_mdb2_options.php:1.1 Tue Mar 30 20:12:52 2004 +++ pear/Auth/tests/auth_container_mdb2_options.php Wed Feb 22 00:34:11 2006 @@ -2,16 +2,16 @@ /* //TEST DATABASE: ----------------------------------------------- -DROP TABLE IF EXISTS temp; -CREATE TABLE temp ( - username varchar(150) NOT NULL, - password varchar(200) NOT NULL +DROP TABLE IF EXISTS temp; +CREATE TABLE temp ( + username varchar(150) NOT NULL, + password varchar(200) NOT NULL ); ----------------------------------------------- */ $options = array( - 'dsn' => 'mysql://root:@localhost/test', + 'dsn' => 'mysql://root:@localhost/authtest', 'table' => 'temp', 'usernamecol' => 'username', 'passwordcol' => 'password', @@ -21,5 +21,5 @@ $extra_options['username'] = 'test_user'; $extra_options['passwd'] = 'test_user'; -echo '<pre>'; -?> \ No newline at end of file + +?> http://cvs.php.net/viewcvs.cgi/pear/Auth/tests/auth_container_mdb_options.php?r1=1.2&r2=1.3&diff_format=u Index: pear/Auth/tests/auth_container_mdb_options.php diff -u pear/Auth/tests/auth_container_mdb_options.php:1.2 pear/Auth/tests/auth_container_mdb_options.php:1.3 --- pear/Auth/tests/auth_container_mdb_options.php:1.2 Tue Mar 30 20:12:52 2004 +++ pear/Auth/tests/auth_container_mdb_options.php Wed Feb 22 00:34:11 2006 @@ -2,16 +2,16 @@ /* //TEST DATABASE: ----------------------------------------------- -DROP TABLE IF EXISTS temp; -CREATE TABLE temp ( - username varchar(150) NOT NULL, - password varchar(200) NOT NULL +DROP TABLE IF EXISTS temp; +CREATE TABLE temp ( + username varchar(150) NOT NULL, + password varchar(200) NOT NULL ); ----------------------------------------------- */ $options = array( - 'dsn' => 'mysql://root:@localhost/test', + 'dsn' => 'mysql://root:@localhost/authtest', 'table' => 'temp', 'usernamecol' => 'username', 'passwordcol' => 'password', @@ -21,5 +21,5 @@ $extra_options['username'] = 'test_user'; $extra_options['passwd'] = 'test_user'; -echo '<pre>'; -?> \ No newline at end of file + +?> http://cvs.php.net/viewcvs.cgi/pear/Auth/tests/auth_container_pop3_options.php?r1=1.4&r2=1.5&diff_format=u Index: pear/Auth/tests/auth_container_pop3_options.php diff -u pear/Auth/tests/auth_container_pop3_options.php:1.4 pear/Auth/tests/auth_container_pop3_options.php:1.5 --- pear/Auth/tests/auth_container_pop3_options.php:1.4 Mon Oct 11 11:23:23 2004 +++ pear/Auth/tests/auth_container_pop3_options.php Wed Feb 22 00:34:11 2006 @@ -1,11 +1,11 @@ <?php $options = array( - 'host'=>'example.com', + 'host'=>'mail.example.com', 'port'=>'110' ); -$extra_options['username'] = 'test@example.com'; -$extra_options['passwd'] = 'test'; +$extra_options['username'] = 'test_user'; +$extra_options['passwd'] = 'test_user'; -?> \ No newline at end of file +?> http://cvs.php.net/viewcvs.cgi/pear/Auth/tests/auth_container_pop3a_options.php?r1=1.1&r2=1.2&diff_format=u Index: pear/Auth/tests/auth_container_pop3a_options.php diff -u pear/Auth/tests/auth_container_pop3a_options.php:1.1 pear/Auth/tests/auth_container_pop3a_options.php:1.2 --- pear/Auth/tests/auth_container_pop3a_options.php:1.1 Sat Jul 19 17:58:15 2003 +++ pear/Auth/tests/auth_container_pop3a_options.php Wed Feb 22 00:34:11 2006 @@ -1,8 +1,8 @@ <?php -$options = 'mail.netsmart.com.cy:110'; +$options = 'mail.example.com:110'; $extra_options['username'] = 'test_user'; $extra_options['passwd'] = 'test_user'; -?> \ No newline at end of file +?> http://cvs.php.net/viewcvs.cgi/pear/Auth/tests/tests.php?r1=1.7&r2=1.8&diff_format=u Index: pear/Auth/tests/tests.php diff -u pear/Auth/tests/tests.php:1.7 pear/Auth/tests/tests.php:1.8 --- pear/Auth/tests/tests.php:1.7 Fri Oct 28 16:14:42 2005 +++ pear/Auth/tests/tests.php Wed Feb 22 00:34:11 2006 @@ -34,15 +34,15 @@ #$suite->addTest(new PHPUnit_TestSuite('IMAPContainer')); $suite->addTest(new PHPUnit_TestSuite('FileContainer')); $suite->addTest(new PHPUnit_TestSuite('DBContainer')); -$suite->addTest(new PHPUnit_TestSuite('DBLiteContainer')); +//$suite->addTest(new PHPUnit_TestSuite('DBLiteContainer')); // MDB Container -//$suite->addTest(new PHPUnit_TestSuite('MDBContainer')); +$suite->addTest(new PHPUnit_TestSuite('MDBContainer')); // MDB2 Container -//$suite->addTest(new PHPUnit_TestSuite('MDB2Container')); +$suite->addTest(new PHPUnit_TestSuite('MDB2Container')); // POP3 Container -//$suite->addTest(new PHPUnit_TestSuite('POP3Container')); +$suite->addTest(new PHPUnit_TestSuite('POP3Container')); $result = PHPUnit::run($suite); echo $result->toString(); -?> \ No newline at end of file +?> http://cvs.php.net/viewcvs.cgi/pear/Auth/tests/mysql_test_db.sql?view=markup&rev=1.1 Index: pear/Auth/tests/mysql_test_db.sql +++ pear/Auth/tests/mysql_test_db.sql CREATE TABLE temp ( username varchar(150) NOT NULL default '', password varchar(200) NOT NULL default '' ) ENGINE=MyISAM DEFAULT CHARSET=latin1;

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