elliotchance / concise

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

disableConstructor() on a mock should not be allowed #176

Closed elliotchance closed 10 years ago

elliotchance commented 10 years ago

A mock should not run any logic, this includes the constructor.

elliotchance commented 10 years ago

Actually this does make sense, because the constructor may setup the mock in a way thats usable (like setting properties or some other kind of state) since its easy to disable the constructor on a mock I will keep this functionality the same. However, before the issue is closed this should be explained in the docs.