Re: About PHPUnit/GUI/gui.php
| From: | Jesus M. Castagnetto | Date: | Thu, 25 Apr 2002 10:48:18 +0000 |
| Subject: | Re: About PHPUnit/GUI/gui.php | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-5792@lists.php.net to get a copy of this message | ||
+1 on this
I've also started to use PHPUnit, and having a more flexible gui will be
useful. Maybe we can add logic to pick appropriately named GET or POST vars
e.g.:
$testName = (isset($_GET["name"])) ? $_GET["name"] : $_POST["name"];
$testFile = (isset($_GET["file"])) ? $_GET["file"] : $_POST["file"];
That way if your tests are in the include_path, you could do:
http://www.example.com/unittest/test.php?name=ComplexTest&file=ComplexTest.php
--- Naoki Shima <naoki@avantexchange.com> wrote:
> I've started using PHPUnit extensively and found out that there is a GUI
> version of it on pear.
> I tried it and liked it. But there is one thing that I want to modify to
> make it work without
> copying gui.php for each class file that my team makes.
> 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';
> ?>
> To use PHPUnit/GUI/gui.php this way, I need to either comment out or delete
> following 4 line from it.
> // Set the name of your testsuite class
> $testName = "className";
> // Set the path of your testsuite file
> $testFile = "classFileName";
>
> May I commit this change?
>
> Naoki Shima
>
> naoki@avantexchange.com
> murahachibu@@php.net
>
>
> --
> PEAR Development Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
=====
--- Jesus M. Castagnetto (jcastagnetto@yahoo.com)
Research:
http://metallo.scripps.edu/
Personal: http://www.castagnetto.org/
__________________________________________________
Do You Yahoo!?
Yahoo! Games - play chess, backgammon, pool and more
http://games.yahoo.com/