MemcacheBundle icon indicating copy to clipboard operation
MemcacheBundle copied to clipboard

mock memcache extends real memcache class

Open mente opened this issue 12 years ago • 0 comments

Hello,

This PR makes MockMemcache class extend real Memcached class in order to be safely substituted in injections with strong typing. Consider following simple example:

class ClassUsingMemcached 
{
  private $memcached;

  public __construct(Memcached $memcached) 
  {
    $this->memcached = $memcached;
  }
}

mente avatar Dec 06 '13 13:12 mente