X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Fclient002.phpt;h=0da72d00ba9f0d2b2c683898314d61e03a746799;hb=b9e1564632b6d00d1120ee7c73574759af9e6167;hp=aeb2d8ac7041e888475178b190db8175823f63b5;hpb=597319011750ceaf7e156fe8bc03574e7f4e399b;p=m6w6%2Fext-http diff --git a/tests/client002.phpt b/tests/client002.phpt index aeb2d8a..0da72d0 100644 --- a/tests/client002.phpt +++ b/tests/client002.phpt @@ -14,9 +14,10 @@ echo "Test\n"; class Observer implements SplObserver { + #[ReturnTypeWillChange] function update(SplSubject $client, http\Client\Request $request = null, StdClass $progress = null) { echo "P"; - if ($client->getProgressInfo($request) != $progress) { + if ($progress->info !== "prepare" && $client->getProgressInfo($request) != $progress) { var_dump($progress); } }