Dogpatch, an HTTP API testing framework


We just released dogpatch an open source HTTP API testing framework, written in PHP using curl. Dogpatch supports ssl, basic auth, passing custom request headers, redirection (10 levels), and most HTTP request methods.

We orginally wrote dogpatch for testing the Commando.io API but quickly realized others found it super valuable and decided to open source it.

Below is a canonical example. Enjoy, and curl on!

$dogpatch = new Dogpatch();
$dogpatch->get("https://api.github.com")
->assert_status_code(200)
->assert_headers_exist(array(
"X-GitHub-Request-Id",
"ETag"
))
->assert_headers(array(
"Server” => “GitHub.com"
))
->assert_body(IS_VALID_JSON)
->close();

Email me when DevOps & Programming publishes stories