Annotation of embedaddon/php/ext/oci8/tests/extauth_04.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Test External Authentication errors on Windows
                      3: --SKIPIF--
                      4: <?php
                      5: if (!extension_loaded('oci8')) die ("skip no oci8 extension");
                      6: if (substr(PHP_OS, 0, 3) != 'WIN') die("skip this test is for Windows platforms only");
                      7: ?>
                      8: --FILE--
                      9: <?php
                     10: 
                     11: // Run Test
                     12: 
                     13: echo "Test 1\n";
                     14: 
                     15: $c = oci_connect('/', '', 'anything', null, OCI_CRED_EXT);
                     16: if (!$c) {
                     17:        $m = oci_error();
                     18:        var_dump($m);
                     19: }
                     20: var_dump($c);
                     21: 
                     22: echo "Test 2\n";
                     23: 
                     24: $c = oci_new_connect('/', '', 'anything', null, OCI_CRED_EXT);
                     25: if (!$c) {
                     26:        $m = oci_error();
                     27:        var_dump($m);
                     28: }
                     29: var_dump($c);
                     30: 
                     31: echo "Test 3\n";
                     32: 
                     33: $c = oci_pconnect('/', '', 'anything', null, OCI_CRED_EXT);
                     34: if (!$c) {
                     35:        $m = oci_error();
                     36:        var_dump($m);
                     37: }
                     38: var_dump($c);
                     39: 
                     40: ?>
                     41: ===DONE===
                     42: <?php exit(0); ?>
                     43: --EXPECTF--
                     44: Test 1
                     45: Warning: oci_connect(): External Authentication is not supported on Windows in %s on line %d
                     46: bool(false)
                     47: bool(false)
                     48: Test 2
                     49: Warning: oci_new_connect(): External Authentication is not supported on Windows in %s on line %d
                     50: bool(false)
                     51: bool(false)
                     52: Test 3
                     53: Warning: oci_pconnect(): External Authentication is not supported on Windows in %s on line %d
                     54: bool(false)
                     55: bool(false)
                     56: ===DONE===

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>