Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:69647 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 9442 invoked from network); 17 Oct 2013 17:52:44 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Oct 2013 17:52:44 -0000 Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 192.64.116.196 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 192.64.116.196 imap4.ox.registrar-servers.com Received: from [192.64.116.196] ([192.64.116.196:57380] helo=imap4.ox.registrar-servers.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9E/24-12663-AE320625 for ; Thu, 17 Oct 2013 13:52:43 -0400 Received: from localhost (localhost [127.0.0.1]) by oxmail.registrar-servers.com (Postfix) with ESMTP id 71B03560084 for ; Thu, 17 Oct 2013 13:52:39 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at imap4.ox.registrar-servers.com Received: from oxmail.registrar-servers.com ([127.0.0.1]) by localhost (imap4.ox.registrar-servers.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id nYFYZXaQ5Ezq for ; Thu, 17 Oct 2013 13:52:39 -0400 (EDT) Received: from [192.168.0.200] (unknown [94.3.245.95]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by oxmail.registrar-servers.com (Postfix) with ESMTPSA id D5DC4560082 for ; Thu, 17 Oct 2013 13:52:38 -0400 (EDT) Message-ID: <526023DF.6080203@ajf.me> Date: Thu, 17 Oct 2013 18:52:31 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: internals@lists.php.net References: <525FC834.4060501@php.net> <1534105.bNC2os93J1@rofl> <525FDAC3.6060103@php.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Assertions From: ajf@ajf.me (Andrea Faulds) On 17/10/2013 16:51, Nikita Popov wrote: >... In addition to all that you've said, I should point out that both Java and Python have an assert statement which raises an exception, which happens to be called AssertionError in both languages. A quick search on GitHub shows quite a lot of people catching AssertionErrors in unit tests. -- Andrea Faulds http://ajf.me/