Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ext/curl/tests/curl_headerfunction_throws_abort.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ curl_setopt($ch, CURLOPT_HEADERFUNCTION,
try {
curl_exec($ch);
} catch (Exception $e) {
echo $e->getMessage(), "\n";
echo $e::class, ': ', $e->getMessage(), "\n";
}

var_dump(curl_errno($ch) === CURLE_WRITE_ERROR);
Expand All @@ -39,7 +39,7 @@ var_dump(curl_errno($ch) === CURLE_OK);
?>
--EXPECTF--
Test: header function throws exception
header exception
Exception: header exception
bool(true)
Test: header function is null
bool(true)
4 changes: 2 additions & 2 deletions ext/curl/tests/curl_prereqfunction_throws_abort.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ curl_setopt($ch, CURLOPT_PREREQFUNCTION,
try {
curl_exec($ch);
} catch (Exception $e) {
echo $e->getMessage(), "\n";
echo $e::class, ': ', $e->getMessage(), "\n";
}

var_dump(curl_errno($ch) === CURLE_ABORTED_BY_CALLBACK);

?>
--EXPECTF--
prereq exception
Exception: prereq exception
bool(true)
4 changes: 2 additions & 2 deletions ext/curl/tests/curl_progressfunction_throws_abort.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ curl_setopt($ch, CURLOPT_PROGRESSFUNCTION,
try {
curl_exec($ch);
} catch (Exception $e) {
echo $e->getMessage(), "\n";
echo $e::class, ': ', $e->getMessage(), "\n";
}

var_dump(curl_errno($ch) === CURLE_ABORTED_BY_CALLBACK);
Expand All @@ -40,7 +40,7 @@ var_dump(curl_errno($ch) === CURLE_OK);
?>
--EXPECTF--
Test: progress function throws exception
info exception
Exception: info exception
bool(true)
Test: progress function is null
bool(true)
4 changes: 2 additions & 2 deletions ext/curl/tests/curl_readfunction_throws_abort.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ curl_setopt($ch, CURLOPT_READFUNCTION,
try {
curl_exec($ch);
} catch (Exception $e) {
echo $e->getMessage(), "\n";
echo $e::class, ': ', $e->getMessage(), "\n";
}

var_dump(curl_errno($ch) === CURLE_ABORTED_BY_CALLBACK);
Expand All @@ -42,7 +42,7 @@ var_dump(curl_errno($ch) === CURLE_OK);
?>
--EXPECTF--
Test: read function throws exception
read exception
Exception: read exception
bool(true)
Test: read function is null
bool(true)
4 changes: 2 additions & 2 deletions ext/curl/tests/curl_writefunction_throws_abort.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ curl_setopt($ch, CURLOPT_WRITEFUNCTION,
try {
curl_exec($ch);
} catch (Exception $e) {
echo $e->getMessage(), "\n";
echo $e::class, ': ', $e->getMessage(), "\n";
}

var_dump(curl_errno($ch) === CURLE_WRITE_ERROR);
Expand All @@ -38,7 +38,7 @@ var_dump(curl_errno($ch) === CURLE_OK);
?>
--EXPECTF--
Test: write function throws exception
write exception
Exception: write exception
bool(true)
Test: write function is null
Hello World!
Expand Down
4 changes: 2 additions & 2 deletions ext/curl/tests/curl_xferinfofunction_throws_abort.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ curl_setopt($ch, CURLOPT_XFERINFOFUNCTION,
try {
curl_exec($ch);
} catch (Exception $e) {
echo $e->getMessage(), "\n";
echo $e::class, ': ', $e->getMessage(), "\n";
}

var_dump(curl_errno($ch) === CURLE_ABORTED_BY_CALLBACK);
Expand All @@ -40,7 +40,7 @@ var_dump(curl_errno($ch) === CURLE_OK);
?>
--EXPECTF--
Test: xfer info function throws exception
info exception
Exception: info exception
bool(true)
Test: xfer info function is null
bool(true)
Loading