Changeset 1118
- Timestamp:
- 09/08/08 05:40:46 (3 months ago)
- Files:
-
- branches/arnoschn/cache/lib/AkUnitTest.php (modified) (1 diff)
- branches/arnoschn/cache/lib/AkUnitTestSuite.php (modified) (1 diff)
- branches/arnoschn/cache/lib/utils/scripts/ci-test.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/arnoschn/cache/lib/AkUnitTest.php
r1115 r1118 73 73 if ($file!=null && file_exists($file)) { 74 74 $val = file_get_contents($file); 75 if ($val == 0) {75 if ($val == '0') { 76 76 return false; 77 77 } branches/arnoschn/cache/lib/AkUnitTestSuite.php
r1031 r1118 9 9 var $partial_tests = array(); 10 10 var $title = 'Akelos Tests'; 11 var $excludes = 'config'; 11 12 function AkUnitTestSuite() 12 13 { branches/arnoschn/cache/lib/utils/scripts/ci-test.php
r1116 r1118 481 481 require_once(AK_BASE_DIR.DS.'lib'.DS.'AkCache'.DS.'AkMemcache.php'); 482 482 $memcache = new AkMemcache(); 483 return @$memcache d->init(array('servers'=>array($socket)));483 return @$memcache->init(array('servers'=>array($socket))); 484 484 } 485 485 function _configureMemcache() … … 487 487 require_once(AK_BASE_DIR.DS.'lib'.DS.'AkCache'.DS.'AkMemcache.php'); 488 488 $memcache = new AkMemcache(); 489 while (( $socket = $this->promptUserVar('Please provide the socket memcached is running on',array('default'=>'localhost:11211')) && !$this->_checkMemcacheInstallation($socket))) {489 while ((($socket = $this->promptUserVar('Please provide the socket memcached is running on',array('default'=>'localhost:11211'))) && !$this->_checkMemcacheInstallation($socket))) { 490 490 $this->error('Could not connect to memcached at socket: '.$socket); 491 491 $tryAgain = $this->promptUserVar('Want to try again configuring memcached support?',array('default'=>'Yes')); 492 if (!in_array(strtolower($ memcachedInstalled),array('y','yes','si','ja','1'))) {492 if (!in_array(strtolower($tryAgain),array('y','yes','si','ja','1'))) { 493 493 return false; 494 494 }
