mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Use composer as application autoloader
This commit is contained in:
56
tests/Alchemy/Tests/Phrasea/Cache/MemcacheCacheTest.php
Normal file
56
tests/Alchemy/Tests/Phrasea/Cache/MemcacheCacheTest.php
Normal file
@@ -0,0 +1,56 @@
|
||||
<?php
|
||||
|
||||
namespace Alchemy\Tests\Phrasea\Cache;
|
||||
|
||||
use Alchemy\Phrasea\Cache\MemcacheCache;
|
||||
|
||||
class MemcacheCacheTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
/**
|
||||
* @var MemcacheCache
|
||||
*/
|
||||
protected $object;
|
||||
|
||||
public function setUp()
|
||||
{
|
||||
$this->object = new MemcacheCache();
|
||||
|
||||
if ( ! class_exists('Memcache')) {
|
||||
$this->markTestSkipped('No memcache extension');
|
||||
}
|
||||
|
||||
$memcache = new \Memcache();
|
||||
if ( ! @$memcache->connect('localhost', 11211)) {
|
||||
$this->markTestSkipped('No memcache server');
|
||||
}
|
||||
|
||||
$this->object->setMemcache($memcache);
|
||||
}
|
||||
|
||||
public function testIsServer()
|
||||
{
|
||||
$this->assertTrue(is_bool($this->object->isServer()));
|
||||
}
|
||||
|
||||
public function testGetStats()
|
||||
{
|
||||
$this->assertTrue(is_array($this->object->getStats()) || is_null($this->object->getStats()));
|
||||
}
|
||||
|
||||
public function testGet()
|
||||
{
|
||||
// Remove the following lines when you implement this test.
|
||||
$this->markTestIncomplete(
|
||||
'This test has not been implemented yet.'
|
||||
);
|
||||
}
|
||||
|
||||
public function testDeleteMulti()
|
||||
{
|
||||
// Remove the following lines when you implement this test.
|
||||
$this->markTestIncomplete(
|
||||
'This test has not been implemented yet.'
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user