php-src/ext/oci8/tests/password_old.phpt
Antony Dovgal 31c35e5cad add 4 new tests
remove ENV tag from the old ones
2005-12-06 19:28:25 +00:00

31 lines
573 B
PHP

--TEST--
ocipasswordchange()
--SKIPIF--
<?php if (!extension_loaded('oci8')) die("skip no oci8 extension"); ?>
--FILE--
<?php
require dirname(__FILE__)."/connect.inc";
$new_password = "test";
var_dump(ocipasswordchange($c, $user, $password, $new_password));
if (!empty($dbase)) {
var_dump($new_c = ocilogon($user,$new_password,$dbase));
}
else {
var_dump($new_c = ocilogon($user,$new_password));
}
var_dump(ocipasswordchange($new_c, $user, $new_password, $password));
echo "Done\n";
?>
--EXPECTF--
bool(true)
resource(%d) of type (oci8 connection)
bool(true)
Done