Re: RFC: Anonymous Classes
| From: | Matthieu Napoli | Date: | Mon, 23 Sep 2013 12:01:42 +0000 |
| Subject: | Re: RFC: Anonymous Classes | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-69267@lists.php.net to get a copy of this message | ||
Le 23/09/2013 10:39, Rasmus Lerdorf a écrit :
On 09/22/2013 11:39 PM, Joe Watkins wrote:Adding to the other use-cases already explained: it would also definitely be very useful for mocking in tests. We could create on-the-fly implementations for interfaces, avoiding using complex mocking API (PHPUnit or others).I am having a hard time picturing a real-world use-case for this.https://wiki.php.net/rfc/anonymous_classesI'd like to hear thoughts regarding the addition of anonymousclasses, patch included.