|Info||View files (1)||Download .zip||Reputation||Support forum (2)||Blog|
|Last Updated||Ratings||Unique User Downloads||Download Rankings|
|2009-09-03 (4 years ago)||Not enough user ratings||Total: 466||All time: 5,438 This week: 1,733|
|super-proxy 1.0||GNU General Public Lice...||5.2||PHP 5, Language, Testing|
It uses reflection to create a copy of the declaration of a given class and changes it to turn private and protected variables and functions.
The class can create an object of the original class copy.
Prize: One subscription to the PDF edition of the PHP Architect magazine
|When you want to perform a tests that verify whether a given class works as expected, you may need to call functions or access variables that are private or protected.
That circumstance raises a difficulty because you can only access private and protected members from inside the same class.
This class provides a workaround that consists in creating a clone of the original class which has all private and protected variables and functions made public.
This way it becomes possible to access all class members for testing purposes.
|Version Control||Unique User Downloads||Download Rankings|
|This week:||0||This week:||1,733|
|User Comments (2)|