<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -40,10 +40,17 @@ class CacheMemcacheTest extends PHPUnit_Framework_TestCase {
    * Prepares the environment before running a test.
    */
   protected function setUp() {
+    if (!extension_loaded('memcache')) {
+      $message = 'memcache requires the memcache extention';
+      throw new PHPUnit_Framework_SkippedTestSuiteError($message);
+    }
     parent::setUp();
     $this-&gt;time = new MockRequestTime();
-    $this-&gt;cache = Cache::createCache('CacheStorageMemcache', 'TestCache',
-                                      $this-&gt;time);
+    $this-&gt;cache = Cache::createCache('CacheStorageMemcache', 'TestCache', $this-&gt;time);
+    if (! is_resource($this-&gt;cache)) {
+      $message = 'memcache server can not connect';
+      throw new PHPUnit_Framework_SkippedTestSuiteError($message);
+    }
   }
 
   /**</diff>
      <filename>php/test/common/CacheMemcacheTest.php</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>71c9a19a97fc34135734a95ea2ff7ead3b3d358a</id>
    </parent>
  </parents>
  <author>
    <name>Chris Chabot</name>
    <email>chabotc@apache.org</email>
  </author>
  <url>http://github.com/sgala/apache-incubator-shindig/commit/642f2eef8d17db6cea9f0706d1f4075de0c2f824</url>
  <id>642f2eef8d17db6cea9f0706d1f4075de0c2f824</id>
  <committed-date>2009-05-12T05:51:39-07:00</committed-date>
  <authored-date>2009-05-12T05:51:39-07:00</authored-date>
  <message>SHINDIG-1059 by lipeng : CacheMemcacheTest file depend on php have loaded memchache extension

git-svn-id: https://svn.apache.org/repos/asf/incubator/shindig/trunk@773874 13f79535-47bb-0310-9956-ffa450edef68</message>
  <tree>640c31a24844c66d805200499e3fbfc57835bc9a</tree>
  <committer>
    <name>Chris Chabot</name>
    <email>chabotc@apache.org</email>
  </committer>
</commit>
