From: Robert M. <rob...@gm...> - 2009-04-13 11:06:24
|
Hi, I'm quite happy to see that starting with http://git.mantisbt.org/?p=mantisbt.git;a=commit;h=a6773fcd3fe5e8678913887dd01d3ff946891486 we're getting automated tests for the SOAP API. I've tried running them using phpunit, but I've had little luck with setting the include path right. I've resorted to hacking a bootstrap file like: <?php include_once('../api/soap/nusoap/nusoap.php'); set_include_path(get_include_path() . PATH_SEPARATOR . '../api/soap/'); include_once('mc_issue_api.php'); ?> but when running the tests I get PHP Warning: 100 in /srv/www/htdocs/users/robert/mantis12x/core/config_api.php on line 187 PHP Warning: 100 in /srv/www/htdocs/users/robert/mantis12x/core/config_api.php on line 187 PHP Warning: 100 in /srv/www/htdocs/users/robert/mantis12x/core/config_api.php on line 187 PHP Warning: implode(): Invalid arguments passed in /srv/www/htdocs/users/robert/mantis12x/core/config_api.php on line 403 PHP Warning: 100 in /srv/www/htdocs/users/robert/mantis12x/core/config_api.php on line 187 PHP Warning: in_array(): Wrong datatype for second argument in /srv/www/htdocs/users/robert/mantis12x/core/lang_api.php on line 183 PHP Fatal error: Call to undefined function plugin_get_current() in /srv/www/htdocs/users/robert/mantis12x/core/lang_api.php on line 285 What's the recommended way of running these tests? Thanks, Robert |
From: Gianluca S. <gi...@gm...> - 2009-04-15 14:27:18
|
On Mon, Apr 13, 2009 at 1:06 PM, Robert Munteanu <rob...@gm...> wrote: > I'm quite happy to see that starting with > http://git.mantisbt.org/?p=mantisbt.git;a=commit;h=a6773fcd3fe5e8678913887dd01d3ff946891486 > we're getting automated tests for the SOAP API. > Me too :) > I've tried running them using phpunit, but I've had little luck with > setting the include path right. Confirmed, I was not able to run the new tests: [giallu@bingo tests]$ phpunit soap/ PHPUnit 3.3.2 by Sebastian Bergmann. FPHP Fatal error: Class 'SoapClient' not found in /var/www/mantis/mantisbt/tests/soap/SoapBase.php on line 40 > > I've resorted to hacking a bootstrap file like: And that reminds me I somewhat improved the tests directory layout as part of my work the the new layout[1], I should really ask for comments and decide how to proceed... [1] http://tinyurl.com/crxd2v -- Gianluca Sforna http://morefedora.blogspot.com http://www.linkedin.com/in/gianlucasforna |
From: Victor B. <vb...@gm...> - 2009-04-17 07:23:04
|
You need to have the PHP5 soap extension installed. I also typically run phpunit from inside the tests/soap/ path with the filename to run as a parameter. On Wed, Apr 15, 2009 at 7:27 AM, Gianluca Sforna <gi...@gm...> wrote: > On Mon, Apr 13, 2009 at 1:06 PM, Robert Munteanu > <rob...@gm...> wrote: > > I'm quite happy to see that starting with > > > http://git.mantisbt.org/?p=mantisbt.git;a=commit;h=a6773fcd3fe5e8678913887dd01d3ff946891486 > > we're getting automated tests for the SOAP API. > > > > Me too :) > > > I've tried running them using phpunit, but I've had little luck with > > setting the include path right. > > Confirmed, I was not able to run the new tests: > [giallu@bingo tests]$ phpunit soap/ > PHPUnit 3.3.2 by Sebastian Bergmann. > > FPHP Fatal error: Class 'SoapClient' not found in > /var/www/mantis/mantisbt/tests/soap/SoapBase.php on line 40 > > > > > > > I've resorted to hacking a bootstrap file like: > > And that reminds me I somewhat improved the tests directory layout as > part of my work the the new layout[1], I should really ask for > comments and decide how to proceed... > > > [1] http://tinyurl.com/crxd2v > > > -- > Gianluca Sforna > > http://morefedora.blogspot.com > http://www.linkedin.com/in/gianlucasforna > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > mantisbt-dev mailing list > man...@li... > https://lists.sourceforge.net/lists/listinfo/mantisbt-dev > |