Quantcast
Channel: Serverphorums.com
Viewing all articles
Browse latest Browse all 23908

Re: [PHP-DEV] Friend class/function

$
0
0
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

Viewing all articles
Browse latest Browse all 23908

Trending Articles