PHPackages                             box/shmock - 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. box/shmock

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

box/shmock
==========

Shorthand for (PHPUnit) Mocking

1.0.0(12y ago)3430.8k7[2 issues](https://github.com/box/shmock/issues)[1 PRs](https://github.com/box/shmock/pulls)1Apache 2.0PHPPHP &gt;=5.4.0

Since Jan 27Pushed 9y ago6 watchersCompare

[ Source](https://github.com/box/shmock)[ Packagist](https://packagist.org/packages/box/shmock)[ Docs](http://github.com/box/shmock)[ RSS](/packages/box-shmock/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (1)Dependencies (2)Versions (12)Used By (1)

Shmock (SHorthand for MOCKing)
==============================

[](#shmock-shorthand-for-mocking)

What is this?
-------------

[](#what-is-this)

Shmock is a smooth alternative for creating mocks with PHPUnit that uses the mock/replay concept from EasyMock but uses closures to define the scope for mocking.

```
