Skip to content

Commit e2147d4

Browse files
committed
DEBUG dump individual times, rm slow tests
1 parent 466ba80 commit e2147d4

File tree

9 files changed

+90
-359
lines changed

9 files changed

+90
-359
lines changed

ext/oci8/tests/bug42496_1.phpt

Lines changed: 0 additions & 57 deletions
This file was deleted.

ext/oci8/tests/bug42496_2.phpt

Lines changed: 0 additions & 55 deletions
This file was deleted.

ext/oci8/tests/bug44113.phpt

Lines changed: 0 additions & 48 deletions
This file was deleted.

ext/oci8/tests/calltimeout1.phpt

Lines changed: 0 additions & 48 deletions
This file was deleted.

ext/oci8/tests/extauth_01.phpt

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ oci8.privileged_connect=1
1313

1414
echo "Test 1\n";
1515

16+
$tt = microtime(true);
1617
$c = oci_connect('/', 'notemtpy', 'x.cz', null, OCI_CRED_EXT);
18+
echo 'elapsed: ' . round(microtime(true) - $tt) . " secs\n";
1719
if (!$c) {
1820
$m = oci_error();
1921
var_dump($m);
@@ -22,7 +24,9 @@ var_dump($c);
2224

2325
echo "Test 2\n";
2426

27+
$tt = microtime(true);
2528
$c = oci_connect('notemtpy', 'notemtpy', 'x.cz', null, OCI_CRED_EXT);
29+
echo 'elapsed: ' . round(microtime(true) - $tt) . " secs\n";
2630
if (!$c) {
2731
$m = oci_error();
2832
var_dump($m);
@@ -31,7 +35,9 @@ var_dump($c);
3135

3236
echo "Test 3\n";
3337

38+
$tt = microtime(true);
3439
$c = oci_connect('notemtpy', '', 'x.cz', null, OCI_CRED_EXT);
40+
echo 'elapsed: ' . round(microtime(true) - $tt) . " secs\n";
3541
if (!$c) {
3642
$m = oci_error();
3743
var_dump($m);
@@ -40,7 +46,9 @@ var_dump($c);
4046

4147
echo "Test 4\n";
4248

49+
$tt = microtime(true);
4350
$c = oci_connect('a', 'b', 'x.cz', null, OCI_SYSDBA+OCI_SYSOPER);
51+
echo 'elapsed: ' . round(microtime(true) - $tt) . " secs\n";
4452
if (!$c) {
4553
$m = oci_error();
4654
var_dump($m);
@@ -49,7 +57,9 @@ var_dump($c);
4957

5058
echo "Test 5\n";
5159

60+
$tt = microtime(true);
5261
$c = oci_connect('a', 'b', 'x.cz', null, OCI_SYSDBA+OCI_SYSOPER+OCI_CRED_EXT);
62+
echo 'elapsed: ' . round(microtime(true) - $tt) . " secs\n";
5363
if (!$c) {
5464
$m = oci_error();
5565
var_dump($m);
@@ -58,7 +68,9 @@ var_dump($c);
5868

5969
echo "Test 6\n";
6070

71+
$tt = microtime(true);
6172
$c = oci_connect('', '', 'x.cz', null, OCI_CRED_EXT);
73+
echo 'elapsed: ' . round(microtime(true) - $tt) . " secs\n";
6274
if (!$c) {
6375
$m = oci_error();
6476
var_dump($m);
@@ -67,7 +79,9 @@ var_dump($c);
6779

6880
echo "Test 7\n";
6981

82+
$tt = microtime(true);
7083
$c = oci_connect('/', '', 'x.cz', null, OCI_CRED_EXT);
84+
echo 'elapsed: ' . round(microtime(true) - $tt) . " secs\n";
7185
if (!$c) {
7286
$m = oci_error();
7387
var_dump($m);
@@ -76,7 +90,9 @@ var_dump($c);
7690

7791
echo "Test 8\n";
7892

93+
$tt = microtime(true);
7994
$c = oci_connect('/', null, 'x.cz', null, OCI_CRED_EXT);
95+
echo 'elapsed: ' . round(microtime(true) - $tt) . " secs\n";
8096
if (!$c) {
8197
$m = oci_error();
8298
var_dump($m);
@@ -85,7 +101,9 @@ var_dump($c);
85101

86102
echo "Test 9\n";
87103

104+
$tt = microtime(true);
88105
$c = oci_connect('/', '', 'x.cz', null, OCI_SYSDBA+OCI_CRED_EXT);
106+
echo 'elapsed: ' . round(microtime(true) - $tt) . " secs\n";
89107
if (!$c) {
90108
$m = oci_error();
91109
var_dump($m);
@@ -94,7 +112,9 @@ var_dump($c);
94112

95113
echo "Test 10\n";
96114

115+
$tt = microtime(true);
97116
$c = oci_connect('/', '', 'x.cz', null, OCI_SYSOPER+OCI_CRED_EXT);
117+
echo 'elapsed: ' . round(microtime(true) - $tt) . " secs\n";
98118
if (!$c) {
99119
$m = oci_error();
100120
var_dump($m);
@@ -107,36 +127,43 @@ var_dump($c);
107127
Test 1
108128

109129
Warning: oci_connect(): OCI_CRED_EXT can only be used with a username of "/" and a NULL password in %s on line %d
130+
elapsed: %d secs
110131
bool(false)
111132
bool(false)
112133
Test 2
113134

114135
Warning: oci_connect(): OCI_CRED_EXT can only be used with a username of "/" and a NULL password in %s on line %d
136+
elapsed: %d secs
115137
bool(false)
116138
bool(false)
117139
Test 3
118140

119141
Warning: oci_connect(): OCI_CRED_EXT can only be used with a username of "/" and a NULL password in %s on line %d
142+
elapsed: %d secs
120143
bool(false)
121144
bool(false)
122145
Test 4
123146

124147
Warning: oci_connect(): OCI_SYSDBA and OCI_SYSOPER cannot be used together in %s on line %d
148+
elapsed: %d secs
125149
bool(false)
126150
bool(false)
127151
Test 5
128152

129153
Warning: oci_connect(): OCI_SYSDBA and OCI_SYSOPER cannot be used together in %s on line %d
154+
elapsed: %d secs
130155
bool(false)
131156
bool(false)
132157
Test 6
133158

134159
Warning: oci_connect(): OCI_CRED_EXT can only be used with a username of "/" and a NULL password in %s on line %d
160+
elapsed: %d secs
135161
bool(false)
136162
bool(false)
137163
Test 7
138164

139165
Warning: oci_connect(): ORA-12154: %s in %s on line %d
166+
elapsed: %d secs
140167
array(4) {
141168
["code"]=>
142169
int(12154)
@@ -151,6 +178,7 @@ bool(false)
151178
Test 8
152179

153180
Warning: oci_connect(): ORA-12154: %s in %s on line %d
181+
elapsed: %d secs
154182
array(4) {
155183
["code"]=>
156184
int(12154)
@@ -165,6 +193,7 @@ bool(false)
165193
Test 9
166194

167195
Warning: oci_connect(): ORA-%d: TNS:%s in %s on line %d
196+
elapsed: %d secs
168197
array(4) {
169198
["code"]=>
170199
int(%d)
@@ -179,6 +208,7 @@ bool(false)
179208
Test 10
180209

181210
Warning: oci_connect(): ORA-%d: TNS:%s in %s on line %d
211+
elapsed: %d secs
182212
array(4) {
183213
["code"]=>
184214
int(%d)

0 commit comments

Comments
 (0)