PHPackages                             feedtailor/mocking-method-invoker - 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-method-invoker

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

feedtailor/mocking-method-invoker
=================================

Any methods invoker for Mock object.

0.1.0(11y ago)01261MITPHPPHP &gt;=5.3.3

Since Aug 5Pushed 4y ago5 watchersCompare

[ Source](https://github.com/feedtailor/mocking-method-invoker)[ Packagist](https://packagist.org/packages/feedtailor/mocking-method-invoker)[ Docs](https://github.com/feedtailor/mocking-method-invoker)[ RSS](/packages/feedtailor-mocking-method-invoker/feed)WikiDiscussions master Synced today

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

mocking-method-invoker
======================

[](#mocking-method-invoker)

Any methods invoker for Mock object.

[![Build Status](https://camo.githubusercontent.com/fcbc297c8914adc5ac7cdcd43b3561d9d735e5947760ebaa2fee95bb0713fafe/68747470733a2f2f7472617669732d63692e6f72672f666565647461696c6f722f6d6f636b696e672d6d6574686f642d696e766f6b65722e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/feedtailor/mocking-method-invoker)

Install
-------

[](#install)

Add `feedtailor/mocking-method-invoker` as a dependency in your project's composer.json file.

```
{
  "require": {
    "feedtailor/mocking-method-invoker": "dev-master"
  }
}
```

Example
-------

[](#example)

```
use Feedtailor\Mocking\MethodInvoker;

class ExampleClass
{
    protected function add($a, $b)
    {
        return $a + $b;
    }
}

$obj = new ExampleClass();

$result = MethodInvoker::create($obj)->invoke("getFoo", array(40, 2)) // got 42.
```

Methods
-------

[](#methods)

### $invoker = new MethodInvoker($obj);

[](#invoker--new-methodinvokerobj)

### $invoker = MethodInvoker::create($obj);

[](#invoker--methodinvokercreateobj)

Create a new MethodInvoker instance.

### $invoker-&gt;invoke($name, $args);

[](#invoker-invokename-args)

invoke the `$name` method with `$args` array arguments.

License
-------

[](#license)

Licensed under the MIT License.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity48

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

4296d 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)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/feedtailor-mocking-method-invoker/health.svg)

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

###  Alternatives

[phpspec/prophecy

Highly opinionated mocking framework for PHP 5.3+

8.5k551.7M679](/packages/phpspec-prophecy)[vimeo/psalm

A static analysis tool for finding errors in PHP applications

5.8k77.5M6.7k](/packages/vimeo-psalm)[brianium/paratest

Parallel testing for PHP

2.5k118.8M754](/packages/brianium-paratest)[beberlei/assert

Thin assertion library for input validation in business models.

2.4k96.9M571](/packages/beberlei-assert)[mikey179/vfsstream

Virtual file system to mock the real file system in unit tests.

1.4k108.0M2.7k](/packages/mikey179-vfsstream)[orchestra/testbench

Laravel Testing Helper for Packages Development

2.2k39.1M32.0k](/packages/orchestra-testbench)

PHPackages © 2026

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