A useful video tutorial on how to setup unit testing with the Zend Framework using Eclipse PDT or Zend Studio:
Unit Testing with the Zend Framework with Zend_Test and PHPUnit
A useful video tutorial on how to setup unit testing with the Zend Framework using Eclipse PDT or Zend Studio:
Unit Testing with the Zend Framework with Zend_Test and PHPUnit
This may be caused by the PHP_PEAR_PHP_BIN environment variable not being set correctly.
To fix this go to Advanced System Settings in Control Panel/System & Maintenance/System.
Select Environment Variables.
Find variable PHP_PEAR_PHP_BIN and change the value from ./php.exe to the correct path\to\php.exe on your system.
References:
PHPUnit ignores pathing to php.exe on Windows for PHPT executions
php_pear_php_bin is not set correctly
To reference the next sibling nodes in a SimpleXMLElement object in PHP you can use the xpath axes “following-sibling” as shown below:
$nextSibling = $element->xpath("following-sibling::ElementName");
To reference the first sibling following the element:
$firstSiblingElement = $nextSibling[0];
Reference: XPath Axes