Jump to content


Photo

Netbeans & PHPUnit

phpunit netbeans

  • Please log in to reply
No replies to this topic

#1 OAFC_Rob

OAFC_Rob

    Advanced Member

  • Members
  • PipPipPip
  • 115 posts
  • LocationUK

Posted 01 October 2013 - 06:32 AM

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...hp/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.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com