Re: one test, run many times with different files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Gary Johnson wrote:

> I am a newbie to phpunit.  I have written 20 or so unit tests.
> I have done some RTFM.  I have a set of tests that can that I want to run
> with multiple input files.
> 
> My environment is linux , php 5.3 and up
> I can write bash scripts to iterate over the files in a number of ways.
> 
> My boss to run tests by typing phpunit <directory>
> 
> 
> What is the phpunit way of running test1 with file1, file2, file3.... as
> input?

That is nicely explained in the PHPUnit manual:
<https://phpunit.de/manual/current/en/organizing-tests.html>.  (You may
have to switch to the PHPUnit version you're using.)

BTW: this mailing is list is meant for members of the PHP-QA team; the
question is better asked on the general user list
(<php-general@xxxxxxxxxxxxx>).  I have added it as receiver.

-- 
Christoph M. Becker


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux