cvs: php-src(PHP_5_2) /ext/odbc/tests config.inc odbc_exec_001.phpt skipif.inc
| From: | Felipe Pena | Date: | Mon, 11 May 2009 03:10:31 +0000 |
| Subject: | cvs: php-src(PHP_5_2) /ext/odbc/tests config.inc odbc_exec_001.phpt skipif.inc | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-57704@lists.php.net to get a copy of this message | ||
felipe Mon May 11 03:10:31 2009 UTC
Added files: (Branch: PHP_5_2)
/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');
}