Re: Friend class/function

From: Date: Mon, 02 Nov 2015 09:53:22 +0000
Subject: Re: Friend class/function
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-89034@lists.php.net to get a copy of this message
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

« previous php.internals (#89034) next »