PHPackages                             feedtailor/mocking-property-modifier - 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. feedtailor/mocking-property-modifier

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

feedtailor/mocking-property-modifier
====================================

A property modifier for Mock object.

1.0.0(11y ago)0103MITPHPPHP &gt;=5.3.3

Since Jul 23Pushed 4y ago5 watchersCompare

[ Source](https://github.com/feedtailor/Moking-PropertyModifier)[ Packagist](https://packagist.org/packages/feedtailor/mocking-property-modifier)[ Docs](https://github.com/feedtailor/mocking-property-modifier)[ RSS](/packages/feedtailor-mocking-property-modifier/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Moking-PropertyModifier
=======================

[](#moking-propertymodifier)

A property modifier for Mock object.

[![Build Status](https://camo.githubusercontent.com/2c90c34872d57b8056d24798f8b98eaa29c3e89b2245215766e009e095e4c5fa/68747470733a2f2f7472617669732d63692e6f72672f666565647461696c6f722f4d6f6b696e672d50726f70657274794d6f6469666965722e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/feedtailor/Moking-PropertyModifier)

Install
-------

[](#install)

feedtailor/mocking-property-modifier を composer.json に追加して、 `composer install` を実行します。

```
{
  "require": {
    "feedtailor/mocking-property-modifier": "dev-master"
  }
}
```

Example
-------

[](#example)

```
use Feedtailor\Mocking\PropertyModifier;

class ExampleClass
{
    protected $foo = 10;

    public function getFoo()
    {
        return $this->foo;
    }
}

$obj = new ExampleClass();

echo $obj->getFoo();  // 10

PropertyModifier::create($obj)->modify("foo", 42);

echo $obj->getFoo();  // 42
```

Methods
-------

[](#methods)

### $modifier = new PropertyModifier($obj);

[](#modifier--new-propertymodifierobj)

### $modifier = PropertyModifier::create($obj);

[](#modifier--propertymodifiercreateobj)

Create a new `$modifier` instance.

### $modifier-&gt;modify($name, $value);

[](#modifier-modifyname-value)

modify a `$name` property to `$value`.

### $modifier-&gt;modifyAll($values);

[](#modifier-modifyallvalues)

modify properties by associative array `$values`.

License
-------

[](#license)

Licensed under the MIT License.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

4309d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9198d6564d261ea1e0b73ccb68355fa85a1ddfc7fc9144b30fd896e46d8e0d7d?d=identicon)[feedtailor](/maintainers/feedtailor)

---

Top Contributors

[![tamaoki](https://avatars.githubusercontent.com/u/10543968?v=4)](https://github.com/tamaoki "tamaoki (1 commits)")

---

Tags

testmock

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/feedtailor-mocking-property-modifier/health.svg)

```
[![Health](https://phpackages.com/badges/feedtailor-mocking-property-modifier/health.svg)](https://phpackages.com/packages/feedtailor-mocking-property-modifier)
```

###  Alternatives

[mockery/mockery

Mockery is a simple yet flexible PHP mock object framework

10.7k497.0M23.5k](/packages/mockery-mockery)[php-mock/php-mock

PHP-Mock can mock built-in PHP functions (e.g. time()). PHP-Mock relies on PHP's namespace fallback policy. No further extension is needed.

36918.1M98](/packages/php-mock-php-mock)[brain/monkey

Mocking utility for PHP functions and WordPress plugin API

33412.5M348](/packages/brain-monkey)[php-mock/php-mock-phpunit

Mock built-in PHP functions (e.g. time()) with PHPUnit. This package relies on PHP's namespace fallback policy. No further extension is needed.

1718.2M399](/packages/php-mock-php-mock-phpunit)[polishsymfonycommunity/symfony-mocker-container

Provides base Symfony dependency injection container enabling service mocking.

1468.0M237](/packages/polishsymfonycommunity-symfony-mocker-container)[letsdrink/ouzo-goodies

Utility classes, test assertions and mocking framework extracted from Ouzo framework.

132617.9k7](/packages/letsdrink-ouzo-goodies)

PHPackages © 2026

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