5 Topics

Member Avatar for
Member Avatar for malatamil

while running the phpunit project am getting error like "cannot open file src/autoload.php". i tried with this reference https://phpunit.de/getting-started.html. In cmd i used the below command line >> phpunit --bootstrap src/autoload.php tests/MoneyTest please anyone help me to solve this issue.

Member Avatar for malatamil
0
968
Member Avatar for PsychicTide

Hey guys, this seems to be a thorn in my side. I've been working on scraping a website which uses aspx and has eventvalidation/viewstate inputs. Every other scraping experiment I've made was not this difficult. Maybe one of you geniuses here at Daniweb has an idea of how to solve …

Member Avatar for PsychicTide
0
890
Member Avatar for Clanstrom

I am new to PHPUnit & unit-testing in general, I have got this problem, thankfully I can sense, the answer is out there, maybe with everyone has ever done their first tests. Here it goes: I have been trying to find tutorials for unit-testing with PHPUnit. And, so far all, …

Member Avatar for pritaeas
0
246
Member Avatar for nexocentric

I have an interesting problem and have searched the internet, but haven't yet found an answer. Consider the following function: function get_setting_values_from_file( $parameter ) { exec("/usr/var/binary --options $parameter", $output, $return); $settings = file( $output[0] ); } I need to unit test a similar function. I am currently using phpUnit for …

Member Avatar for nexocentric
0
950
Member Avatar for BenzZz

Hi, I've been reading into testing my PHP code particularly unit testing using PHPUnit. The problem I have is that most of my code is procedural with not even many functions. I have read that unit testing is more suitable for OO PHP however i have seen that many people …

Member Avatar for BenzZz
0
499

The End.