PHPackages                             draw/http-tester - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. draw/http-tester

ActiveLibrary[Testing &amp; Quality](/categories/testing)

draw/http-tester
================

0.4.0(7y ago)021.0k1MITPHP

Since Mar 10Pushed 6y agoCompare

[ Source](https://github.com/mpoiriert/php-http-tester)[ Packagist](https://packagist.org/packages/draw/http-tester)[ RSS](/packages/draw-http-tester/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (4)Versions (3)Used By (1)

Php Http Tester
===============

[](#php-http-tester)

[![https://travis-ci.org/mpoiriert/php-http-tester.svg?branch=master](https://camo.githubusercontent.com/63708bafaa06dae9ff88c8b9a657715bbcd4489d5af22eb8c6ab4cb8958ccd0e/68747470733a2f2f7472617669732d63692e6f72672f6d706f6972696572742f7068702d687474702d7465737465722e7376673f6272616e63683d6d6173746572)](https://camo.githubusercontent.com/63708bafaa06dae9ff88c8b9a657715bbcd4489d5af22eb8c6ab4cb8958ccd0e/68747470733a2f2f7472617669732d63692e6f72672f6d706f6972696572742f7068702d687474702d7465737465722e7376673f6272616e63683d6d6173746572)

This library is meant to be a testing framework for http call. It is framework agnostic. By default it does a curl call to the specified url but you can use/create a adapter for the framework you are using.

The library can be install via [Composer/Packagist](https://packagist.org/packages/draw/http-tester).

In that example we are trying to have a browser flow so the usage of phpunit annotation **@depends**and **@test** make it more readable.

Here is a quick example of how to use it in a **PHPUnit TestCase**:

```
