padraic/mockery — pull request #42 by kodova (2011-12-09 21:45:51+00:00)
Title: Corrected issue with calling an unexpected static method on a alias mock

When calling a unexpected static method on an alias mock would generate a fatel error for using $this while not in the context of an object. The root cause is in the generated mock where in the exception handling for __callStatic was trying to build a error message by referring to ```$this->_mockery_name.```` Updated the exception handling to call use the real object and get the name from it. Also included unit test to prove that it now works as expected.