PHPackages                             blackbird/magento-mock-object - 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. blackbird/magento-mock-object

ActiveMagento2-module[Testing &amp; Quality](/categories/testing)

blackbird/magento-mock-object
=============================

N/A

1.1.1(2y ago)1189MITPHPPHP ~7.4.0||~8.0.0||~8.1.0||~8.2.0

Since Aug 21Pushed 2y ago1 watchersCompare

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

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

magento-mock-object
===================

[](#magento-mock-object)

[![Latest Stable Version](https://camo.githubusercontent.com/dd58329e6a923a53561c83ac932237b7ea0b6cc313a12cc4c07d38bef38b6e61/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d312e312e302d626c7565)](https://packagist.org/packages/blackbird/magento-mock-object)[![License: MIT](https://camo.githubusercontent.com/48b44e395f45fc5fcd16f0f9681a98385d62bd5bd4ed76a6472bfe03d0adb33d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f626c61636b626972642d6167656e63792f6d6167656e746f2d6d6f636b2d6f626a6563742e737667)](./LICENSE)

This module is a simple repository to use on require-dev to have available objects that implements DataObject methods.

Since almost every object in magento extends from DataObject,
mocking object with PHPUnit can be painful as you have to handle popular methods
like `getData()` or `setData()` manually on every object you mock.

More objects will be added.

Setup
-----

[](#setup)

### Get the package

[](#get-the-package)

**Composer Package:**

```
composer require --dev blackbird/magento-mock-object

```

### Install the module

[](#install-the-module)

Go to your Magento root directory and run the following magento command:

```
php bin/magento setup:upgrade

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~54 days

Total

3

Last Release

885d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/12445118?v=4)[anthony-blackbird](/maintainers/anthony-blackbird)[@anthony-blackbird](https://github.com/anthony-blackbird)

---

Top Contributors

[![sebastienbird](https://avatars.githubusercontent.com/u/83710445?v=4)](https://github.com/sebastienbird "sebastienbird (4 commits)")[![luderic-blackbird](https://avatars.githubusercontent.com/u/144663333?v=4)](https://github.com/luderic-blackbird "luderic-blackbird (3 commits)")[![cpblackbird](https://avatars.githubusercontent.com/u/62594672?v=4)](https://github.com/cpblackbird "cpblackbird (1 commits)")

### Embed Badge

![Health badge](/badges/blackbird-magento-mock-object/health.svg)

```
[![Health](https://phpackages.com/badges/blackbird-magento-mock-object/health.svg)](https://phpackages.com/packages/blackbird-magento-mock-object)
```

###  Alternatives

[mollie/magento2

Mollie Payment Module for Magento 2

1121.6M10](/packages/mollie-magento2)[dotdigital/dotdigital-magento2-extension

Dotdigital for Magento 2

50374.2k18](/packages/dotdigital-dotdigital-magento2-extension)[tddwizard/magento2-fixtures

Fixture library for Magento 2 integration tests

146438.6k9](/packages/tddwizard-magento2-fixtures)[o2ti/sigep-web-carrier

O2TI - Sigep Web Carrier

141.5k](/packages/o2ti-sigep-web-carrier)[mage-os/module-inventory-reservations-grid

Add a grid with the list of inventory reservations.

126.8k](/packages/mage-os-module-inventory-reservations-grid)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
