mirror of
https://github.com/php/php-src.git
synced 2024-12-01 13:54:10 +08:00
- Initial release
This commit is contained in:
parent
66f5639327
commit
4b96eea15f
25
ext/sybase_ct/tests/test_close.phpt
Normal file
25
ext/sybase_ct/tests/test_close.phpt
Normal 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)
|
21
ext/sybase_ct/tests/test_close_default.phpt
Normal file
21
ext/sybase_ct/tests/test_close_default.phpt
Normal 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)
|
18
ext/sybase_ct/tests/test_close_notopen.phpt
Normal file
18
ext/sybase_ct/tests/test_close_notopen.phpt
Normal 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
|
Loading…
Reference in New Issue
Block a user