You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@shindig.apache.org by "lipeng (JIRA)" <ji...@apache.org> on 2009/05/12 10:55:45 UTC

[jira] Created: (SHINDIG-1059) CacheMemcacheTest file depend on php have loaded memchache extension

CacheMemcacheTest file depend on php have loaded memchache extension
--------------------------------------------------------------------

                 Key: SHINDIG-1059
                 URL: https://issues.apache.org/jira/browse/SHINDIG-1059
             Project: Shindig
          Issue Type: Test
          Components: PHP
            Reporter: lipeng
             Fix For: trunk


CacheMemcacheTest file depend on php have loaded memchache extension

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (SHINDIG-1059) CacheMemcacheTest file depend on php have loaded memchache extension

Posted by "Chris Chabot (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SHINDIG-1059?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris Chabot resolved SHINDIG-1059.
-----------------------------------

    Resolution: Fixed
      Assignee: Chris Chabot

nice catch, thanks!

Applied and committed

> CacheMemcacheTest file depend on php have loaded memchache extension
> --------------------------------------------------------------------
>
>                 Key: SHINDIG-1059
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-1059
>             Project: Shindig
>          Issue Type: Test
>          Components: PHP
>            Reporter: lipeng
>            Assignee: Chris Chabot
>             Fix For: trunk
>
>         Attachments: CacheMemcacheTest.patch
>
>
> CacheMemcacheTest file depend on php have loaded memchache extension

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (SHINDIG-1059) CacheMemcacheTest file depend on php have loaded memchache extension

Posted by "lipeng (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SHINDIG-1059?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

lipeng updated SHINDIG-1059:
----------------------------

    Attachment: CacheMemcacheTest.patch

In function setup, I added conditional statement .
if memcache extionsion dosen't be loaded into php, then throw an exception.
if memcache server doesn;t connected good, throw an exception yet.

code:

protected function setUp() {
  if (!extension_loaded('memcache')) {
    $message = 'memcache requires the memcache extention';
    throw new PHPUnit_Framework_SkippedTestSuiteError($message);
  }
  parent::setUp();
  $this->time = new MockRequestTime();
  $this->cache = Cache::createCache('CacheStorageMemcache', 'TestCache', $this->time);
  if (! is_resource($this->cache)) {
    $message = 'memcache server can not connect';
    throw new PHPUnit_Framework_SkippedTestSuiteError($message);
  }
}

> CacheMemcacheTest file depend on php have loaded memchache extension
> --------------------------------------------------------------------
>
>                 Key: SHINDIG-1059
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-1059
>             Project: Shindig
>          Issue Type: Test
>          Components: PHP
>            Reporter: lipeng
>             Fix For: trunk
>
>         Attachments: CacheMemcacheTest.patch
>
>
> CacheMemcacheTest file depend on php have loaded memchache extension

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.