- Initial release

This commit is contained in:
Timm Friebe 2008-11-09 11:38:17 +00:00
parent 66f5639327
commit 4b96eea15f
3 changed files with 64 additions and 0 deletions

View File

@ -0,0 +1,25 @@
--TEST--
Sybase-CT close
--SKIPIF--
<?php require('skipif.inc'); ?>
--FILE--
<?php
/* This file is part of PHP test framework for ext/sybase_ct
*
* $Id$
*/
require('test.inc');
$db= sybase_connect_ex();
var_dump($db);
sybase_close($db);
var_dump($db);
var_dump(sybase_query('select getdate()', $db));
?>
--EXPECTF--
resource(%d) of type (sybase-ct link)
resource(%d) of type (Unknown)
Warning: sybase_query(): %d is not a valid Sybase-Link resource in %s on line %d
bool(false)

View File

@ -0,0 +1,21 @@
--TEST--
Sybase-CT close default connection
--SKIPIF--
<?php require('skipif.inc'); ?>
--FILE--
<?php
/* This file is part of PHP test framework for ext/sybase_ct
*
* $Id$
*/
require('test.inc');
sybase_connect_ex();
sybase_close();
var_dump(sybase_query('select getdate()'));
?>
--EXPECTF--
Warning: sybase_query(): Sybase: No connection in %s on line %d
bool(false)

View File

@ -0,0 +1,18 @@
--TEST--
Sybase-CT close not open
--SKIPIF--
<?php require('skipif.inc'); ?>
--FILE--
<?php
/* This file is part of PHP test framework for ext/sybase_ct
*
* $Id$
*/
require('test.inc');
sybase_close();
?>
--EXPECTF--
Warning: sybase_close(): Sybase: No connection to close in %s on line %d