felipe          Mon May 11 03:09:59 2009 UTC

  Added files:                 (Branch: PHP_5_3)
    /php-src/ext/odbc/tests     config.inc odbc_exec_001.phpt skipif.inc 
  Log:
  - Starting tests for this extension
  

http://cvs.php.net/viewvc.cgi/php-src/ext/odbc/tests/config.inc?view=markup&rev=1.1
Index: php-src/ext/odbc/tests/config.inc
+++ php-src/ext/odbc/tests/config.inc
<?php

putenv('ODBCINI=/etc/odbc.ini');
putenv('ODBCSYSINI=/etc');

$dsn = 'myodbc3';
$user = 'root';
$pass = '';

http://cvs.php.net/viewvc.cgi/php-src/ext/odbc/tests/odbc_exec_001.phpt?view=markup&rev=1.1
Index: php-src/ext/odbc/tests/odbc_exec_001.phpt
+++ php-src/ext/odbc/tests/odbc_exec_001.phpt
--TEST--
odbc_exec(): Basic test
--SKIPIF--
<?php include 'skipif.inc'; ?>
--FILE--
<?php

include 'config.inc';

$conn = odbc_connect($dsn, $user, $pass);

odbc_exec($conn, 'foo', 'bar');
odbc_exec($conn, 'foo');

odbc_exec($conn, '', '');
odbc_exec($conn, '');

odbc_exec($conn, 1, 1);
odbc_exec($conn, 1);

odbc_exec($conn, NULL, NULL);
odbc_exec($conn, NULL);

?>
--EXPECTF--
Warning: odbc_exec() expects parameter 3 to be long, %unicode_string_optional% 
given in %s on line %d

Warning: odbc_exec(): SQL error: %s in %s on line %d

Warning: odbc_exec() expects parameter 3 to be long, %unicode_string_optional% 
given in %s on line %d

Warning: odbc_exec(): SQL error: %s in %s on line %d

Warning: odbc_exec(): SQL error: %s in %s on line %d

Warning: odbc_exec(): SQL error: %s in %s on line %d

Warning: odbc_exec(): SQL error: %s in %s on line %d

Warning: odbc_exec(): SQL error: %s in %s on line %d

http://cvs.php.net/viewvc.cgi/php-src/ext/odbc/tests/skipif.inc?view=markup&rev=1.1
Index: php-src/ext/odbc/tests/skipif.inc
+++ php-src/ext/odbc/tests/skipif.inc
<?php

if (!extension_loaded('odbc')) die('skip');

include 'config.inc';

$conn = @odbc_connect($dsn, $user, $pass);
if (!$conn) {
        die('skip could not connect');
}



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to