elliotchance / concise

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

Use magic getters for building mocks #171

Open elliotchance opened 10 years ago

elliotchance commented 10 years ago

Any property should try and call a method with the same name:

$this->mock('CustomerEntity')->disableConstuctor()->done();

Will work the same as:

$this->mock('CustomerEntity')->disableConstuctor->done;