X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=vendor%2Fdoctrine%2Fcache%2Ftests%2FDoctrine%2FTests%2FCommon%2FCache%2FMemcacheCacheTest.php;fp=vendor%2Fdoctrine%2Fcache%2Ftests%2FDoctrine%2FTests%2FCommon%2FCache%2FMemcacheCacheTest.php;h=0000000000000000000000000000000000000000;hb=5e458ff8cb4924fd5fa03b80d8edfcc52fe43479;hp=74853b8491fb32b7ee30fe5a8ec4be2a11df3d0e;hpb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;p=yaffs-website diff --git a/vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/MemcacheCacheTest.php b/vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/MemcacheCacheTest.php deleted file mode 100644 index 74853b849..000000000 --- a/vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/MemcacheCacheTest.php +++ /dev/null @@ -1,59 +0,0 @@ -memcache = new Memcache(); - - if (@$this->memcache->connect('localhost', 11211) === false) { - unset($this->memcache); - $this->markTestSkipped('Cannot connect to Memcache.'); - } - } - - protected function tearDown() - { - if ($this->memcache instanceof Memcache) { - $this->memcache->flush(); - } - } - - /** - * {@inheritdoc} - * - * Memcache does not support " " and null byte as key so we remove them from the tests. - */ - public function provideCacheIds() - { - $ids = parent::provideCacheIds(); - unset($ids[21], $ids[22]); - - return $ids; - } - - public function testGetMemcacheReturnsInstanceOfMemcache() - { - $this->assertInstanceOf('Memcache', $this->_getCacheDriver()->getMemcache()); - } - - /** - * {@inheritDoc} - */ - protected function _getCacheDriver() - { - $driver = new MemcacheCache(); - $driver->setMemcache($this->memcache); - return $driver; - } -}