Page 1 of 1

Recommended unit testing framework

PostPosted: January 7th, 2016, 5:03 am
by weirdan
Are there any recommendations on what unit testing framework projects targeting Phalanger should use? It doesn't seem that trusty old PHPUnit would work in such exotic environment (certainly not the command line runner), but what else is available? Tried to use NUnit, but it's picky about method signatures (it wants test methods to return void), and there doesn't seem to be a way to force method's return type (yet?).

Re: Recommended unit testing framework

PostPosted: February 17th, 2016, 2:28 am
by diddledan
I think the problem we have as it stands with regards to PHPUnit is that we don't have an equivalent to the commandline php binary. If we can fix that by introducing an equivalent which we can use akin to `php /path/to/phpunit.php` then I see no reason why PHPUnit would not work thereafter. (I may be way off base there, but that's my thinking anyway.)