I have a data file with input and expected outputs. An example would be:
input: output: 2 3 3 5 4 Exception 5 8 ... ...
I currently have a special solution for reading from a data file and running a test for each pair of {input, output}. I would like to convert this to a PHPUnit-based solution, and I would like to have one test per input, using the test name forXassertY. So, the first three tests will be called for2assert3 (), for3assert5 () and for4assertException ().
I do not want to convert my existing data into tests if you can dynamically create test methods and store the data file as the basis of these tests. I want to convert it to PHPUnit, as I want to add some other tests later, and also process and view the output using Hudson.
Suggestions?
php phpunit
user14070
source share