[CS-Project-svn_notify] SF.net SVN: cs-project:[985] trunk/1.2/lib/globalFunctions.php
Brought to you by:
crazedsanity
From: <cra...@us...> - 2009-09-21 02:58:58
|
Revision: 985 http://cs-project.svn.sourceforge.net/cs-project/?rev=985&view=rev Author: crazedsanity Date: 2009-09-21 02:58:51 +0000 (Mon, 21 Sep 2009) Log Message: ----------- Update versions to the most recent. Modified Paths: -------------- trunk/1.2/lib/globalFunctions.php Modified: trunk/1.2/lib/globalFunctions.php =================================================================== --- trunk/1.2/lib/globalFunctions.php 2009-09-21 02:56:35 UTC (rev 984) +++ trunk/1.2/lib/globalFunctions.php 2009-09-21 02:58:51 UTC (rev 985) @@ -18,7 +18,7 @@ //format: {className} => array({projectName} => {exactVersion}) $requirements = array( 'contentSystem' => array('cs-content', '1.0.0-ALPHA10'), - 'cs_phpxmlParser' => array('cs-phpxml', '1.0.0-ALPHA4') + 'cs_phpxmlParser' => array('cs-phpxml', '1.0.0-RC1') ); if(!is_null($projectName)) { @@ -57,32 +57,28 @@ if(class_exists($className)) { //hopefully, this initializes each of them as a TEST class. $obj = new $className('unit_test'); - if($obj->isTest === TRUE) { - //okay, get version & project names. - if(method_exists($obj, 'get_version') && method_exists($obj, 'get_project')) { - try { - $realVersion = $obj->get_version(); - $realProject = $obj->get_project(); - } - catch(exception $e) { - throw new exception(__METHOD__ .": unable to get project name or version for (". $className ."), DETAILS::: ". $e->getMessage()); - } - - if($realVersion === $matchVersion && $realProject === $matchProject) { - //all looks good. - $retval++; - } - else { - throw new exception(__FUNCTION__ .": version mismatch (". $realVersion ." != ". $matchVersion .") or " . - "invalid project name (". $realProject ." != ". $matchProject .")"); - } + + //okay, get version & project names. + if(method_exists($obj, 'get_version') && method_exists($obj, 'get_project')) { + try { + $realVersion = $obj->get_version(); + $realProject = $obj->get_project(); } + catch(exception $e) { + throw new exception(__METHOD__ .": unable to get project name or version for (". $className ."), DETAILS::: ". $e->getMessage()); + } + + if($realVersion === $matchVersion && $realProject === $matchProject) { + //all looks good. + $retval++; + } else { - throw new exception(__FUNCTION__ .": required checking method(s) for (". $className .") missing"); + throw new exception(__FUNCTION__ .": version mismatch (". $realVersion ." != ". $matchVersion .") or " . + "invalid project name (". $realProject ." != ". $matchProject .")"); } } else { - throw new exception(__FUNCTION__ .": ". $className ."::isTest isn't set, something is broken"); + throw new exception(__FUNCTION__ .": required checking method(s) for (". $className .") missing"); } } else { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |