Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:101832 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8231 invoked from network); 12 Feb 2018 05:18:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Feb 2018 05:18:28 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.181 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.223.181 mail-io0-f181.google.com Received: from [209.85.223.181] ([209.85.223.181:44017] helo=mail-io0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 62/29-18020-3A3218A5 for ; Mon, 12 Feb 2018 00:18:27 -0500 Received: by mail-io0-f181.google.com with SMTP id 72so16020022iom.10 for ; Sun, 11 Feb 2018 21:18:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=20NcV1JDBggq7FP/2Bqlx4KnpR0S08U7HKSV/Iw3tRs=; b=QDNggr3fVMz7v5qhUO5xpOS71dIZYB6yRlQ+tR/izXJOl1vXQLylTwey/x7AGZ9m2/ 0iXy/NFFk1PEdfk4nHwx6W7nQXWgZB6uEe3sLdFcGvqvnYlHUcvKZ8GuJDBlvSKYK6Di 4UL8IVmlRSuchCYw+2nBJRqsvliT4Q5JdyjVJYvz7D3BKRIzDGcPLJwsHzoXDcX3Wo9y +ghfNYqK+i6bNv/h1bfgOsPejYL82nQn4gP0voJQ//4a58q0viS9SvO4uFgOm5TfUwmY seP/srLeSj9mLy829UC58bJQbc1CWEN5nEnHO0kDO8C7m17TS3sElXyp5UlVDdl4Qm2L anVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=20NcV1JDBggq7FP/2Bqlx4KnpR0S08U7HKSV/Iw3tRs=; b=JW9rD6OsX/c2pPtGIDiN93JRa1el128A4qEQQMua6OooBEF0zQHEKohNVF/QPh5GKj +sMt0LCovrvPwIPWUFZYmxYpDNPElTINgDxa4Po3r+Fm7zMBgAOZdXy6eYsuonHQIgPF j6akSpDmRazkbLc8sFW4kFKR5u+qfbbkNXAfSFEj/UZWFe6NxlO7SYsCAYgKCO0gkI58 E3PYmqSOPQGnDCw+QUWNHaOZhzoEkl1aLWUNSSkkQx7Kw/q3S0zd7gFJRHHiDfobuQmh mGDSCfXHxkx6KVOAck7DD5PDBnGWns5tOzm7pn1vnjLxBGF+VqdJtE/HpUm1w5Krp6fq h2sA== X-Gm-Message-State: APf1xPDqLyhxpti9CAqDJnMDgC2VcezYc0yiAFEz2S/gXQ11UBWNNJI3 zfHN9J74cwueANCz6S3fC2rqRvQ= X-Google-Smtp-Source: AH8x2269JSx7QVE2XgbYd1PTfFgubbTYDkdgOyx0kurEVkHBQjJM1U3WmjiNr4Ls1jOacVZi+jZr9w== X-Received: by 10.107.97.24 with SMTP id v24mr11625293iob.296.1518412704376; Sun, 11 Feb 2018 21:18:24 -0800 (PST) Received: from Stas-Pro-2016.local ([2601:646:8a00:a6b0:900:bce8:dce5:70ac]) by smtp.gmail.com with ESMTPSA id k66sm5741900itd.8.2018.02.11.21.18.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 11 Feb 2018 21:18:23 -0800 (PST) To: Pedro Lacerda , internals@lists.php.net References: Message-ID: <5b21571e-722f-43e4-5c9c-4def39447e1e@gmail.com> Date: Sun, 11 Feb 2018 21:18:22 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:58.0) Gecko/20100101 Thunderbird/58.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Proposal to run all tests with and without strict_types enabled From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > My proposal is to run all tests with and without strict_types, skipping if > necessary, and increasing the code coverage. Depending of you overral > reception I'll create an RFC for it. I am not sure what would be the advantage of this. Beyond testing strict_types functionality itself (which of course should have its own unit tests), the tests that test standard functioning of any function would either supply correct arguments and then strict_types would be irrelevant (provided it works as supposed to, which is tested by its own tests) or provide incorrect arguments, and then strict_type tests should be different from regular ones since the errors would be different, so we'd have to write separate tests. The only class of errors that could be found this way would be if we somehow made such a mistake in defining the arguments of certain function that strict_type version of it doesn't work but regular version works fine. Which I guess is possible but does it worth the effort to convert all tests? Not sure. -- Stas Malyshev smalyshev@gmail.com