X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Fclient016.phpt;fp=tests%2Fclient016.phpt;h=f50d9bb8cda5d0236e18936fff8eabeed87098f2;hb=ee8525569b719078876c4e82303704250f62b06d;hp=0000000000000000000000000000000000000000;hpb=8aee6cd43a5071b5c8c3fb7599b6008d63264b50;p=m6w6%2Fext-http diff --git a/tests/client016.phpt b/tests/client016.phpt new file mode 100644 index 0000000..f50d9bb --- /dev/null +++ b/tests/client016.phpt @@ -0,0 +1,38 @@ +--TEST-- +client once & wait with events +--SKIPIF-- +enableEvents()) + throw new Exception("need events support"); +} catch (Exception $e) { + die("skip ".$e->getMessage()); +} +skip_online_test(); +?> +--FILE-- +enableEvents(true); + $client->enqueue($request); + + while ($client->once()) { + $client->wait(.1); + } + + if (!$client->getResponse()) { + var_dump($client); + } +} +?> +Done +--EXPECT-- +Test +Done