Adding conditional class definition so that people who use the 'memcache' pecl module can run the tests.
This commit is contained in:
parent
1cfe7fc65a
commit
fddaa17afb
1 changed files with 6 additions and 2 deletions
|
@ -41,7 +41,11 @@ class Doctrine_Cache_Memcache_TestCase extends Doctrine_UnitTestCase
|
|||
class Doctrine_Cache_Memcache_Mock extends Doctrine_Cache_Memcache
|
||||
{
|
||||
}
|
||||
class Memcache
|
||||
{
|
||||
|
||||
if (!class_exists('Memcache'))
|
||||
{
|
||||
class Memcache
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue