Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:47201 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 5039 invoked from network); 12 Mar 2010 23:27:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Mar 2010 23:27:59 -0000 Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 63.205.162.117 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 63.205.162.117 us-mr1.zend.com Received: from [63.205.162.117] ([63.205.162.117:37554] helo=us-mr1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 48/A9-13686-DFDCA9B4 for ; Fri, 12 Mar 2010 18:27:58 -0500 Received: from us-gw1.zend.com (us-ex1.zend.net [192.168.16.5]) by us-mr1.zend.com (Postfix) with ESMTP id 7F10243F81 for ; Fri, 12 Mar 2010 15:29:22 -0800 (PST) Received: from [192.168.16.93] ([192.168.16.93]) by us-gw1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 12 Mar 2010 15:27:54 -0800 Message-ID: <4B9ACDF8.2020300@zend.com> Date: Fri, 12 Mar 2010 15:27:52 -0800 Organization: Zend Technologies User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.8) Gecko/20100227 Thunderbird/3.0.3 MIME-Version: 1.0 To: internals@lists.php.net References: <4B9926E8.4080202@lerdorf.com> <4B9A93EE.7080403@zend.com> <1418253B-84A3-4CA6-965B-A2501A5D432F@gmail.com> <4B9AB840.1010209@zend.com> <4B9ABDCE.2070904@zend.com> <4B9AC13B.401@sci.fi> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 12 Mar 2010 23:27:54.0309 (UTC) FILETIME=[A3F51F50:01CAC23B] Subject: Re: [PHP-DEV] Tests repository From: stas@zend.com (Stanislav Malyshev) Hi! > It is always possible to write a test for both versions (except > namespace). However it requires a radical change on how we test > things. > Instead of testing the output of given script, we will have to add > logics in a test, something similar to the classic xUnit frameworks. > For example, we will have to do the error msg check inside the test It is possible, but that means instead of 2 trees of files you'd have these trees distributed inside test files in a myriad of small if()s: if(version == X) { test this error message } elseif(version == Y) { test that error message } else { test that another error message } and the same for different pieces of function, etc. Why is it better? -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com