Jump to content

Archived

This topic is now archived and is closed to further replies.

OAFC_Rob

Netbeans & PHPUnit

Recommended Posts

I have managed to get PHPUnit to work with NetBeans, but I'm experiencing a problem when I go to create a test of the back of a class as described in the documents https://netbeans.org/kb/docs/php/phpunit.html

 

It throws out an error in the output area,

PHPUnit Skeleton Generator 1.2.1 by Sebastian Bergmann.


Warning: require_once(..\..\file.php): failed to open stream: No such file or directory in C:\Server\www\myserver.dev\public_html\site\Classes\subFolder\class.php on line 5

Fatal error: require_once(): Failed opening required '.\.\constants.php' (include_path='.;C:\Server\PHP\pear') in C:\Server\www\myserver.dev\public_html\site\Classes\subFolder\class.php on line 5

When I look at a page that is calling the class and put a die within file.php, say "test" I see the output. So i'm not entirely sure what is going on, anyone got any ideas?

 

Just to note I'm running a WAMP environment rather than a LAMP.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.