Hi Georges,
I quite like this idea. Although I struggle to see many use cases. The only one I’ve thought of in the past is the ability to ‘befriend’ the test case for your class. So you don’t have to extend the class in your tests if you want access to non-public class members.
This is purely a dev use-case, so I question it’s worth. But i’d be interested to hear any other use-case suggestions.
Regards,
James Tancock
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
I quite like this idea. Although I struggle to see many use cases. The only one I’ve thought of in the past is the ability to ‘befriend’ the test case for your class. So you don’t have to extend the class in your tests if you want access to non-public class members.
This is purely a dev use-case, so I question it’s worth. But i’d be interested to hear any other use-case suggestions.
Regards,
James Tancock
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php