Reflection to remove final
| From: | Jan Dolecek | Date: | Mon, 16 Jan 2012 18:06:31 +0000 |
| Subject: | Reflection to remove final | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-57381@lists.php.net to get a copy of this message | ||
Hi,
reflection is a great tool for testing, but it still misses support
for mocking classes/methods marked as final. I created a small patch
https://gist.github.com/1621839#file_php_finals.patch,
examples how to
use it https://gist.github.com/1621839#file_final_test.php
and wrote a
short article explaining it:
http://blog.juzna.cz/2012/01/mock-vs-final-fights-in-testing/.
Can you include it into svn pls?
Thanks
Jan Dolecek
juzna.cz@gmail.com