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...
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...
Even better if running in colours to highlight the different characters in the word...