PHPackages                             mcannucci/phnock - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. mcannucci/phnock

AbandonedArchivedLibrary[HTTP &amp; Networking](/categories/http)

mcannucci/phnock
================

Mock HTTP requests

0.1.0(5y ago)49PHP

Since Dec 29Pushed 5y agoCompare

[ Source](https://github.com/MichaelCannucci/Phnock)[ Packagist](https://packagist.org/packages/mcannucci/phnock)[ RSS](/packages/mcannucci-phnock/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

Phnock - PHP Network Mocks
==========================

[](#phnock---php-network-mocks)

Mock network request in your PHP tests

Getting Started
---------------

[](#getting-started)

### Installing

[](#installing)

```
composer require --dev mcannucci/phnock

```

### Bootstraping

[](#bootstraping)

Within the bootstrap file include Phnock::bootstrap() method with all the directories that need to be intercepted

```
