elliotchance / concise

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

Spell checker service #172

Open elliotchance opened 10 years ago

elliotchance commented 10 years ago

A class trait that class can extend that if a method is called that doesn't exist it tries to find method that are similar and throw an exception. It's kind of a gimmick but sometimes it might be a fun little touch...

$this->mock('MyClass')->disableConstor()
No such method 'disableConstor', did you mean 'disableConstructor()'?

Even better if running in colours to highlight the different characters in the word...