svn: /pear2/Pyrus_Developer/trunk/src/Pyrus/Developer/Runphpt/ Runner.php
[email protected] (Brett Bieber) Thu, 22 Jul 2010 14:41:13 +0000
| Newsgroups | php.pear.cvs,php.pear.core |
|---|---|
| Message-ID | <[email protected]> |
saltybeagle Thu, 22 Jul 2010 14:41:13 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=301471
Log:
Bug #17616 Pyrus: Runphpt cannot run if there is no php_bin.
Bug: http://pear.php.net/bugs/17616 (unknown)
Changed paths:
U pear2/Pyrus_Developer/trunk/src/Pyrus/Developer/Runphpt/Runner.php
Modified: pear2/Pyrus_Developer/trunk/src/Pyrus/Developer/Runphpt/Runner.php
===================================================================
--- pear2/Pyrus_Developer/trunk/src/Pyrus/Developer/Runphpt/Runner.php 2010-07-22 14:23:50 UTC (rev 301470)
+++ pear2/Pyrus_Developer/trunk/src/Pyrus/Developer/Runphpt/Runner.php 2010-07-22 14:41:13 UTC (rev 301471)
@@ -220,6 +220,10 @@
function runTests($tests)
{
+ if (empty($this->_php)) {
+ echo "Unable to run phpt no php_bin option found. (pyrus set php_bin <directory>)\n";
+ return false;
+ }
if (!count($tests)) {
$tests = array('.');
}