elliotchance / elliotchance/concise
Allow mocking for chains
Open
Component: Mocking
Size: 2 (Medium)
Type: Feature
- Dominant language
- PHP
- Stars
- 45
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
``` php
public function doSomething(MyClass $obj)
{
return $obj->getSomething()->thenSomethingElse();
}
```
``` php
public function testChain()
{
$mock = $this->mock('MyClass')
->stub(['getSomething->thenSomethingElse' => 'foobar'])
->done();
}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.