Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:68889 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96737 invoked from network); 5 Sep 2013 00:48:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 Sep 2013 00:48:26 -0000 Authentication-Results: pb1.pair.com smtp.mail=rdlowrey@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rdlowrey@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: rdlowrey@gmail.com X-Host-Fingerprint: 209.85.223.181 mail-ie0-f181.google.com Received: from [209.85.223.181] ([209.85.223.181:39535] helo=mail-ie0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F7/A5-01925-8D4D7225 for ; Wed, 04 Sep 2013 20:48:25 -0400 Received: by mail-ie0-f181.google.com with SMTP id a14so2300444iee.40 for ; Wed, 04 Sep 2013 17:48:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=+9H3WoSdwDn54TMhuJZ8G2tj9B6WeXOtWTKBELmvwQA=; b=CwdWGKJgbJe5jQqYp0IolapDOcPDgz2PVsV/UrbbOoFh1fYZ6X0F/Uzhb54cBxBAa2 t0E0szrMHO4fnlJxMCYyICQTzomABcCW3ailj2T/KPjpNd2maG5JJUAocvl9ehDihMOv 8IGYJ9YV28ShdTjdSM/koaKgfprW2G8NOacHXI8YcL4blVv7VuJoDNy6nlhsfC7aKNy8 Yv1AKWiALGrNjZFTFfF+H19f3r+958aZluVSDnKkLd8sryJQNiUW10/qTyVI+urYKaj4 HdLQqu/S6sQ15L56KFCDjdLL7KO2XnfbJxrwVhAcYElom6ev6QT5Nr33dnyY+g3QJZs/ jhaA== MIME-Version: 1.0 X-Received: by 10.50.61.179 with SMTP id q19mr4020580igr.33.1378342101861; Wed, 04 Sep 2013 17:48:21 -0700 (PDT) Received: by 10.50.157.199 with HTTP; Wed, 4 Sep 2013 17:48:21 -0700 (PDT) Date: Wed, 4 Sep 2013 20:48:21 -0400 Message-ID: To: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=047d7bdc109e5c4c2004e5984735 Subject: .phpt test question From: rdlowrey@gmail.com (Daniel Lowrey) --047d7bdc109e5c4c2004e5984735 Content-Type: text/plain; charset=ISO-8859-1 I've been doing a good deal of socket work lately and have some minor stream socket server additions to float, but before I do so I need to add some tests. None of the standard stream socket functionality currently has any tests (stream_socket_pair() being the exception), so there's not much to work from. Anyway, my questions are ... (1) Is it acceptable to briefly use proc_open in a .phpt file to fire up a socket client to test stream socket server functionality? Any secondary processes would only live for a few milliseconds ... (2) Alternatively, is it preferable to only test that the stream resources are created and that errors are triggered as expected when problems arise instead of testing actual functionality that could be considered the underlying OS's responsibility? --047d7bdc109e5c4c2004e5984735--