Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:57381 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 29831 invoked from network); 16 Jan 2012 18:06:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Jan 2012 18:06:57 -0000 Authentication-Results: pb1.pair.com smtp.mail=juzna.cz@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=juzna.cz@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.210.170 as permitted sender) X-PHP-List-Original-Sender: juzna.cz@gmail.com X-Host-Fingerprint: 209.85.210.170 mail-iy0-f170.google.com Received: from [209.85.210.170] ([209.85.210.170:50144] helo=mail-iy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C6/87-07950-F37641F4 for ; Mon, 16 Jan 2012 13:06:55 -0500 Received: by iaoo28 with SMTP id o28so958012iao.29 for ; Mon, 16 Jan 2012 10:06:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; bh=6fmSj1kbUg7xObtSeEcAdQYl3NyAXtrKKm/Ctpd7hJY=; b=oWOy84NdZfPzdWGhik+j99NwWbdq6XYnR4+LxTCPnJNgedecVAC5xtS2vvNuWAGpt7 ZW4zGCzNGCH9ehpUrVswsQEq+HAAp1ec6Zx8mYtWWnZIjqEGZZauXRSJG5MfTubC/RIl 5rcMrAVWtjM/wSCCWvTajdEuBpcParhXBPQHI= Received: by 10.42.168.133 with SMTP id w5mr3183392icy.38.1326737212202; Mon, 16 Jan 2012 10:06:52 -0800 (PST) MIME-Version: 1.0 Received: by 10.231.203.81 with HTTP; Mon, 16 Jan 2012 10:06:31 -0800 (PST) Date: Mon, 16 Jan 2012 19:06:31 +0100 Message-ID: To: PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: [PHP-DEV] Reflection to remove final From: juzna.cz@gmail.com (Jan Dolecek) Hi, reflection is a great tool for testing, but it still misses support for mocking classes/methods marked as final. I created a small patch https://gist.github.com/1621839#file_php_finals.patch, examples how to use it https://gist.github.com/1621839#file_final_test.php and wrote a short article explaining it: http://blog.juzna.cz/2012/01/mock-vs-final-fights-in-testing/. Can you include it into svn pls? Thanks Jan Dolecek juzna.cz@gmail.com