Hello Zoe, we decided to go the --INI-- route to test as many configurations as possible. And only for specific tests change specific ini settings as necessary. If one usees phpt as a test framework for his on web stuff then it might be a good idea to do as you suggested. You would simply do "php run-tests.php -c <ini-file>". Hope this satisfies you :-)
best regards marcus p.s.: Looking forward for new tests from your side Wednesday, March 14, 2007, 4:39:43 PM, you wrote: > Hi - I wonder if anyone could help me with a testing question? > We have written a few additional test cases for string functions which I > was about to check-in, then I noticed that the test cases pass OK if I > use the php.ini-dist file and fail if I don't specify an file (ie use > all default settings). > The difference turns out to the be the use of precision =12 in the > php.ini-dist, rather than the the default value of 14. > It's easy enough to work around this and ensure that test cases pass in > both environments with an --INI-- section in the test case, however - I > wondered if there would be any value in having a php-ini file that was > explicitly used for tests? > We had been using the php.ini-dist file because it's slightly easier to > be precise about the test environment if you can say what you are using > rather than saying "I'm using the default values". I also find it rather > too easy to get the wrong php.ini file accidentally :-( so specifying > one is easier, even if it only contains default values. > Zoe > IBM Best regards, Marcus -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php