Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:22842 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50629 invoked by uid 1010); 18 Apr 2006 18:09:48 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 50613 invoked from network); 18 Apr 2006 18:09:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Apr 2006 18:09:48 -0000 X-Host-Fingerprint: 81.169.182.136 ajaxatwork.net Linux 2.4/2.6 Received: from ([81.169.182.136:56568] helo=strato.aixcept.de) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 01/69-19715-A6B25444 for ; Tue, 18 Apr 2006 14:09:46 -0400 Received: from baumbart.mbo (dslb-084-063-044-032.pools.arcor-ip.net [84.63.44.32]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by strato.aixcept.de (Postfix) with ESMTP id B567235C1E2; Tue, 18 Apr 2006 20:09:43 +0200 (CEST) Date: Tue, 18 Apr 2006 20:07:46 +0200 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <1543039000.20060418200746@marcus-boerger.de> To: Sebastian Bergmann Cc: internals@lists.php.net In-Reply-To: References: <2a8d4a710604180327k443160d2lc4c3fc47b6dfd9f0@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Design By Contract From: helly@php.net (Marcus Boerger) Hello Sebastian, interfaces are contracts as well as any signature is a contract. marcus Tuesday, April 18, 2006, 5:26:44 PM, you wrote: > James Crane schrieb: >> I've been reading and I discovered a concept called Design By >> Contract. I've not seen any particular libraries to aid in this >> particular development design process, but I was wondering if you >> folks had, or if there were plans to consider providing for this >> functionality within PHP. > The only language that I know of that supports Design-by-Contract > through language features is, of course, Eiffel. > PHPUnit [1] supports [2] the same approach to Design-by-Contract that > other Unit Test frameworks provide, too. But that would be a topic for > another mailinglist. > -- > [1] http://www.phpunit.de/ > [2] http://www.phpunit.de/pocket_guide/2.3/en/test-first-programming.html > -- > Sebastian Bergmann http://www.sebastian-bergmann.de/ > GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69 Best regards, Marcus