PHPackages                             chubbyphp/chubbyphp-mock - 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. chubbyphp/chubbyphp-mock

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

chubbyphp/chubbyphp-mock
========================

A strict mocking solution.

2.1.2(4mo ago)5203.6k—5.9%120MITPHPPHP ^8.3CI passing

Since Jul 28Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/chubbyphp/chubbyphp-mock)[ Packagist](https://packagist.org/packages/chubbyphp/chubbyphp-mock)[ RSS](/packages/chubbyphp-chubbyphp-mock/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (11)Versions (33)Used By (20)

chubbyphp-mock
==============

[](#chubbyphp-mock)

[![CI](https://github.com/chubbyphp/chubbyphp-mock/actions/workflows/ci.yml/badge.svg)](https://github.com/chubbyphp/chubbyphp-mock/actions/workflows/ci.yml)[![Coverage Status](https://camo.githubusercontent.com/617115fcfe5d050d975510174ae39052e29305f8b80e472a71df6d405e9c38e7/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6368756262797068702f6368756262797068702d6d6f636b2f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/chubbyphp/chubbyphp-mock?branch=master)[![Mutation testing badge](https://camo.githubusercontent.com/048a8377da9f78ebf478021a33dbdc3144ac7778c6c15a799fe48f722c7b56ab/68747470733a2f2f696d672e736869656c64732e696f2f656e64706f696e743f7374796c653d666c61742675726c3d687474707325334125324625324662616467652d6170692e737472796b65722d6d757461746f722e696f2532466769746875622e636f6d2532466368756262797068702532466368756262797068702d6d6f636b2532466d6173746572)](https://dashboard.stryker-mutator.io/reports/github.com/chubbyphp/chubbyphp-mock/master)[![Latest Stable Version](https://camo.githubusercontent.com/8f0e22b9020e49e0037b783f632a419e05eed20ef783cb8bfe3cfedaca27fcab/68747470733a2f2f706f7365722e707567782e6f72672f6368756262797068702f6368756262797068702d6d6f636b2f76)](https://packagist.org/packages/chubbyphp/chubbyphp-mock)[![Total Downloads](https://camo.githubusercontent.com/2aded17c955720a8b9a08c6a32f6fef3bdc09fa0b6a80be802f5aa78252db10b/68747470733a2f2f706f7365722e707567782e6f72672f6368756262797068702f6368756262797068702d6d6f636b2f646f776e6c6f616473)](https://packagist.org/packages/chubbyphp/chubbyphp-mock)[![Monthly Downloads](https://camo.githubusercontent.com/7ac6b8864a8833dc05321e78cd543b5a040b989588bbfeba9dcebc0dc8ec4f80/68747470733a2f2f706f7365722e707567782e6f72672f6368756262797068702f6368756262797068702d6d6f636b2f642f6d6f6e74686c79)](https://packagist.org/packages/chubbyphp/chubbyphp-mock)

[![bugs](https://camo.githubusercontent.com/82ad42255feee2a474d905c4221e8aceb320442549e82e371cb0dd2155f44912/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d6d6f636b266d65747269633d62756773)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-mock)[![code_smells](https://camo.githubusercontent.com/39940d7c37d795d0858073ffba28fadc1e57ee6b22233784ff812a94a3bfef8d/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d6d6f636b266d65747269633d636f64655f736d656c6c73)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-mock)[![coverage](https://camo.githubusercontent.com/b7d0cbdb427fc9a274d6500f16975f787198ada425fd48f2adc6714bbfb353d0/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d6d6f636b266d65747269633d636f766572616765)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-mock)[![duplicated_lines_density](https://camo.githubusercontent.com/97086097a7021d9c42255ddd03df1f98e422338c1283a62ad002405c4f20a974/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d6d6f636b266d65747269633d6475706c6963617465645f6c696e65735f64656e73697479)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-mock)[![ncloc](https://camo.githubusercontent.com/a278a11d4d5341d0770d8af30a34fa6e086fcafff716e318a9f775e398c04038/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d6d6f636b266d65747269633d6e636c6f63)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-mock)[![sqale_rating](https://camo.githubusercontent.com/e0751d41ffa55d512eb832521ca6538ac158890ae7b4dad8109123de216693d8/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d6d6f636b266d65747269633d7371616c655f726174696e67)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-mock)[![alert_status](https://camo.githubusercontent.com/9252700a8b67522999cb9781c7dd785fc53ead3a1f6173e85e01470e297eeba0/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d6d6f636b266d65747269633d616c6572745f737461747573)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-mock)[![reliability_rating](https://camo.githubusercontent.com/e71b7189d8b4798cd04091e3eeaa493b2ed9e9211e26636c13e2d503e8af96ce/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d6d6f636b266d65747269633d72656c696162696c6974795f726174696e67)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-mock)[![security_rating](https://camo.githubusercontent.com/10759b8afb14b8c297d35cee0fcc9ef5defc16682a3763817340eeeb26a2571e/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d6d6f636b266d65747269633d73656375726974795f726174696e67)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-mock)[![sqale_index](https://camo.githubusercontent.com/07fb04c88356ddec641d6c51882feb71e21519cd86fe3e7526d0b10fccde6ab7/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d6d6f636b266d65747269633d7371616c655f696e646578)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-mock)[![vulnerabilities](https://camo.githubusercontent.com/f388cba45f7a7e18543e428637dd76100350cd12c57b2da0f6457c1be70fbda7/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6368756262797068705f6368756262797068702d6d6f636b266d65747269633d76756c6e65726162696c6974696573)](https://sonarcloud.io/dashboard?id=chubbyphp_chubbyphp-mock)

Description
-----------

[](#description)

A strict mocking solution.

Requirements
------------

[](#requirements)

- php: ^8.3
- [nikic/php-parser](https://packagist.org/packages/nikic/php-parser): ^5.7

Installation
------------

[](#installation)

Through [Composer](http://getcomposer.org) as [chubbyphp/chubbyphp-mock](https://packagist.org/packages/chubbyphp/chubbyphp-mock).

```
composer require chubbyphp/chubbyphp-mock "^2.1" --dev
```

Usage
-----

[](#usage)

```
