Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:32571 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 62494 invoked by uid 1010); 2 Oct 2007 20:20:44 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 62479 invoked from network); 2 Oct 2007 20:20:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Oct 2007 20:20:44 -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 212.25.124.162 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Windows 2000 SP4, XP SP1 Received: from [212.25.124.162] ([212.25.124.162:17375] helo=mx1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CF/32-49174-B18A2074 for ; Tue, 02 Oct 2007 16:20:43 -0400 Received: from us-ex1.zend.com ([192.168.16.5]) by mx1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 2 Oct 2007 22:20:39 +0200 Received: from [127.0.0.1] ([192.168.16.180]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 2 Oct 2007 13:20:37 -0700 Message-ID: <4702A814.5050101@zend.com> Date: Tue, 02 Oct 2007 13:20:36 -0700 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Sebastian Bergmann CC: internals@lists.php.net References: <4702777C.2090406@zend.com> <47027B78.5070909@sebastian-bergmann.de> <47027FF7.9030707@zend.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 02 Oct 2007 20:20:37.0180 (UTC) FILETIME=[B1A24FC0:01C80531] Subject: Re: [PHP-DEV] Class Posing From: stas@zend.com (Stanislav Malyshev) > Stubs / Mock Objects !== Unit Tests. Class Posing allows for better > stubs / mock objects which in turn are tools to write better unit > tests. OK, I see that. The question is - does any of the known unit test systems use mock objects? Does it do that in the language that doesn't allow "new Foo" to create object of entirely unrelated class? If so - how it is usually done? -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com