Re: run-test and .php

From: Date: Wed, 24 Nov 2004 02:01:49 +0000
Subject: Re: run-test and .php
References: 1 2 3 4 5 6 7 8  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-34552@lists.php.net to get a copy of this message
Mika Tuupola wrote:
On Tue, 23 Nov 2004, bertrand Gugger wrote:
but again it's some kind of auto-genarate .phpt what I'm searching
Writing such thing would appear quite impossible task to me (unless you are talking about some kind of test skeleton generator). Simply that: storing the php commands to be put after --FILE--
and the result to be put after --EXPECT-- as $ php -q makePhpt.php (the php commands) --FILE-- <?php ... (the php commands) ?> --EXPECT-- (result)
I would say it takes brains of a programmer to write testcases for a class. or
http://makePhpt.php?(the php commands) all that very rustic, I mean that makePhpt.php system never knows if it's wrong or right, solely registering your commands and their results at some breakpoints you defined thru a static method call in it (call to be removed after test production is ok) afterward you still need to edit, but you should have some material in the unit or .phpt art some ease to produce (Hmm) à+ bertrand Gugger (toggg)

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