elliotchance / concise

✅ Concise is test framework for using plain English and minimal code, built on PHPUnit.
MIT License
45 stars 3 forks source link

Ability to generate mocks from other already defined mocks #230

Open elliotchance opened 9 years ago

elliotchance commented 9 years ago
$mock = $this->niceMock('MyClass')->get();
$newMock = $this->fromMock($mock)->stub(['foo' => 'bar'])->get();

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