Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:47189 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59126 invoked from network); 12 Mar 2010 19:39:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Mar 2010 19:39:18 -0000 Authentication-Results: pb1.pair.com header.from=indeyets@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=indeyets@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.220 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: indeyets@gmail.com X-Host-Fingerprint: 209.85.219.220 mail-ew0-f220.google.com Received: from [209.85.219.220] ([209.85.219.220:63130] helo=mail-ew0-f220.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2F/31-13686-5689A9B4 for ; Fri, 12 Mar 2010 14:39:18 -0500 Received: by ewy20 with SMTP id 20so567248ewy.1 for ; Fri, 12 Mar 2010 11:39:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to:x-mailer; bh=KHpDDWj/H/bDDBNF0GcACVXcZICafwzY7TFgc1FmW5k=; b=ad9Ys5bOVCEBYToiIr8Xnr8goTtYCaYP7tVffiPkKgizkjf6gYCprO4gcflmFa18Hv DpldDsoBbo+KoNT9UFC5icJKGzgOTTU8jfXrlczLHjQqmLR2M8QR0K4fnSxStZ0E5Z8V /fo6/0NDls5mUqUh2jTZ0nNJtT/UCev1MAjDY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=h8q/Hv+2EpuWewEIVoCBnGn5mrlaIzgQyTOyZQBD3hR3fwfQLfnJ1qb36VfZCoRq8J zUZ/XOLFi0cWRDTi2dbvkJ0gvcrCtmfmqmNouLJO7CND8avwEgYaTvCMoSgQvT+sEE+d jJgUzEwF7z2VnaM+WouOTDbfcLy/vf9VWQP8Y= Received: by 10.213.97.17 with SMTP id j17mr718667ebn.24.1268422754772; Fri, 12 Mar 2010 11:39:14 -0800 (PST) Received: from nirvana.lan ([93.185.190.227]) by mx.google.com with ESMTPS id 16sm1130320ewy.11.2010.03.12.11.39.12 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 12 Mar 2010 11:39:13 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset=us-ascii In-Reply-To: Date: Fri, 12 Mar 2010 22:39:10 +0300 Cc: jani.taskinen@iki.fi, Stanislav Malyshev , internals@lists.php.net Content-Transfer-Encoding: quoted-printable Message-ID: <84A2AA1E-3E1F-49E6-85ED-B0E4BA13A731@gmail.com> References: <4B9926E8.4080202@lerdorf.com> <4B995F83.1000605@prohost.org> <4B99639B.9030405@oracle.com> <4B996FC6.7040102@zend.com> <4B997381.1050300@oracle.com> <4B9A14FF.6000703@iki.fi> <4B9A833A.8040402@zend.com> <4B9A848C.3080701@iki.fi> To: Pierre Joye X-Mailer: Apple Mail (2.1077) Subject: Re: [PHP-DEV] Tests repository From: indeyets@gmail.com (Alexey Zakhlestin) On 12.03.2010, at 22:23, Pierre Joye wrote: > On Fri, Mar 12, 2010 at 8:10 PM, Alexey Zakhlestin = wrote: >>=20 >> On 12.03.2010, at 22:06, Pierre Joye wrote: >>=20 >>> Many tests fail because they are written for a given platform, or = even >>> worst (from a portability point of view), only for a given >>> configuration (library version, system version,etc.). And that's not >>> about windows vs other, tests can work on a Debian/ubuntu version = and >>> fail on another. >>=20 >> Well, these tests should just be removed/rewritten. >> Php-tests should test php, not libraries >=20 > I would be interested to know how can we test the file API without > testing libc, for example. see my reply to Stas. The idea is to test things which we can guarantee. If our documentation = says, that function does this or that, then we should check for it and = wrap system-calls in such way, that our "file API" always does these = things or fails in strict predictable manner. And if we can't guarantee some behaviour then we should add = corresponding note to documentation and we shouldn't add tests.=