php - My requires doesn't work with PHPUnit -


i want test library when want require file in test class , run phpunit filename.php error this:

warning: require_once(>>>path file<<<): failed open stream: no such file or directory in >>>file test<<< on line 3  fatal error: require_once(): failed opening required >>>path file<<< (include_path='.;c:\xampp\php\pear') in >>>file test<<< on line 3 

as can see use xampp.

of course when don't run phpunit through browser - imports works great (i use $_server['document_root'] absolute path).

*without require simple test asserttrue(true) works without problems.


Comments

Popular posts from this blog

python - Installing PyDev in eclipse is failed -

PHP OOP-based login system -

c# - Nested Internal Class with Readonly Hashtable throws Null ref exception.. on assignment -