elliotchance / elliotchance/concise

Ability to generate mocks from other already defined mocks

Open
#230 0 comments 0 reactions 0 assignees View on GitHub
Component: Mocking Size: 2 (Medium) Type: Feature
Dominant language
PHP
Stars
45
Forks
3
PR merge metrics
No merged PRs in 30d

Description

``` php
$mock = $this->niceMock('MyClass')->get();
$newMock = $this->fromMock($mock)->stub(['foo' => 'bar'])->get();
```

`$mock` and `$newMock` will work with their respective rules.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.