Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:22835 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 47074 invoked by uid 1010); 18 Apr 2006 15:27:22 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 47059 invoked from network); 18 Apr 2006 15:27:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Apr 2006 15:27:22 -0000 X-Host-Fingerprint: 80.91.229.2 main.gmane.org Linux 2.5 (sometimes 2.4) (4) Received: from ([80.91.229.2:59994] helo=ciao.gmane.org) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id D6/C9-19715-75505444 for ; Tue, 18 Apr 2006 11:27:20 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FVs6Y-0001Nn-QB for internals@lists.php.net; Tue, 18 Apr 2006 17:27:03 +0200 Received: from p5088721c.dip.t-dialin.net ([80.136.114.28]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 18 Apr 2006 17:27:02 +0200 Received: from sb by p5088721c.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 18 Apr 2006 17:27:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: internals@lists.php.net Date: Tue, 18 Apr 2006 17:26:44 +0200 Lines: 21 Message-ID: References: <2a8d4a710604180327k443160d2lc4c3fc47b6dfd9f0@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: p5088721c.dip.t-dialin.net User-Agent: Thunderbird 1.5 (Windows/20051201) In-Reply-To: <2a8d4a710604180327k443160d2lc4c3fc47b6dfd9f0@mail.gmail.com> Sender: news Subject: Re: [PHP-DEV] Design By Contract From: sb@sebastian-bergmann.de (Sebastian Bergmann) 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