https://bugzilla.wikimedia.org/show_bug.cgi?id=42711
Antoine "hashar" Musso <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|Unprioritized |Normal --- Comment #1 from Antoine "hashar" Musso <[email protected]> --- PHPUnit comes both with a `phpunit` CLI script and a set of lib files. The `phpunit` command is looked up according to your $PATH environment. On my install pear put it in /usr/local/bin : $ pear config-show |grep executables PEAR executables directory bin_dir /opt/local/bin My libraries are installed under /opt/local/share/pear : $ pear config-show |grep php_dir PEAR directory php_dir /opt/local/share/pear The libraries are looked up according to the include_path setting of your php.ini file. So include_path=".:/opt/local/share/pear". When you run "php phpunit.php", PHP lookup your include_path and seems to find a PHPUnit copy installed by your distribution, probably something like /usr/share/php/PEAR. To fix your problem you should: 1) include in your PATH the PEAR bin dir : pear config-show |grep executables 2) fix your include_path in /etc/php.ini so it points to PEAR php dir : pear config-show |grep php_dir Optionally: remove the phpunit package installed by your distribution :-) -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
