adapt some tests for unix socket connections
[m6w6/ext-pq] / tests / async001.phpt
index 9fa2eb70a34aba0df7c85b734051e5543a0795cf..4b2a54b5e8c6ae1134580780dc101356ba9a0731 100644 (file)
@@ -8,7 +8,7 @@ echo "Test\n";
 
 include "_setup.inc";
 
-$c = new pq\Connection(PQ_DSN, false);
+$c = new pq\Connection(PQ_DSN, true);
 $s = array($c->status);
 echo "W";
 $w = array($c->socket);
@@ -38,11 +38,12 @@ while (true) {
                        break 2;
        }
 }
+$s[] = $c->status;
 printf("\n%s\n", implode(",", $s));
 ?>
 DONE
 --EXPECTREGEX--
 Test
 (WP(RP)*)+S
-3(,\d+),+4
+[23](,\d*)*,0
 DONE