Re: About PHPUnit/GUI/gui.php

From: Date: Thu, 25 Apr 2002 10:12:22 +0000
Subject: Re: About PHPUnit/GUI/gui.php
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-5798@lists.php.net to get a copy of this message
Naoki Shima wrote: > Instead, I think it's wise to make test**.php that looks like this. > <?php > // Set the name of your testsuite class > $testName = "className"; > // Set the path of your testsuite file > $testFile = "classFileName"; > include_once 'PHPUnit/GUI/gui.php'; > ?> This idea isn't bad, but somewhat too briefly meant. I would prefer a optional form <form ...> Testname: <input type="text" name="postClassName"> TestFile on Server <input type="text" name="postClassFile"> or Upload file<input type="file"> </form> and then add to gui.php // Set the name of your testsuite class $defaultTestName = ""; // Set the path of your testsuite file $defaultTestFile = ""; if(empty($defaultTestName)) { showForm(); } elseif(isset(_POST['postClassname']) ...) { $testName = $_POST['postClassName']; ... } else { $testName = $defaultTestName; }

« previous php.pear.dev (#5798) next »