mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Use short array declaration
This commit is contained in:
@@ -17,26 +17,26 @@ class FactoryTest extends \PHPUnit_Framework_TestCase
|
||||
}
|
||||
|
||||
$factory = new Factory(new ConnectionFactory());
|
||||
$this->assertInstanceOf($expected, $factory->create($name, array()));
|
||||
$this->assertInstanceOf($expected, $factory->create($name, []));
|
||||
}
|
||||
|
||||
public function provideCacheTypes()
|
||||
{
|
||||
return array(
|
||||
array('apc', 'apc', 'Alchemy\Phrasea\Cache\ApcCache'),
|
||||
array('apccache', 'apc', 'Alchemy\Phrasea\Cache\ApcCache'),
|
||||
array('array', null, 'Alchemy\Phrasea\Cache\ArrayCache'),
|
||||
array('arraycache', null, 'Alchemy\Phrasea\Cache\ArrayCache'),
|
||||
array('memcache', 'memcache', 'Alchemy\Phrasea\Cache\MemcacheCache'),
|
||||
array('memcachecache', 'memcache', 'Alchemy\Phrasea\Cache\MemcacheCache'),
|
||||
array('memcached', 'memcached', 'Alchemy\Phrasea\Cache\MemcachedCache'),
|
||||
array('memcachecached', 'memcached', 'Alchemy\Phrasea\Cache\MemcachedCache'),
|
||||
array('redis', 'redis', 'Alchemy\Phrasea\Cache\RedisCache'),
|
||||
array('rediscache', 'redis', 'Alchemy\Phrasea\Cache\RedisCache'),
|
||||
array('wincache', 'wincache', 'Alchemy\Phrasea\Cache\WincacheCache'),
|
||||
array('wincachecache', 'wincache', 'Alchemy\Phrasea\Cache\WincacheCache'),
|
||||
array('xcache', 'xcache', 'Alchemy\Phrasea\Cache\XcacheCache'),
|
||||
array('xcachecache', 'xcache', 'Alchemy\Phrasea\Cache\XcacheCache'),
|
||||
);
|
||||
return [
|
||||
['apc', 'apc', 'Alchemy\Phrasea\Cache\ApcCache'],
|
||||
['apccache', 'apc', 'Alchemy\Phrasea\Cache\ApcCache'],
|
||||
['array', null, 'Alchemy\Phrasea\Cache\ArrayCache'],
|
||||
['arraycache', null, 'Alchemy\Phrasea\Cache\ArrayCache'],
|
||||
['memcache', 'memcache', 'Alchemy\Phrasea\Cache\MemcacheCache'],
|
||||
['memcachecache', 'memcache', 'Alchemy\Phrasea\Cache\MemcacheCache'],
|
||||
['memcached', 'memcached', 'Alchemy\Phrasea\Cache\MemcachedCache'],
|
||||
['memcachecached', 'memcached', 'Alchemy\Phrasea\Cache\MemcachedCache'],
|
||||
['redis', 'redis', 'Alchemy\Phrasea\Cache\RedisCache'],
|
||||
['rediscache', 'redis', 'Alchemy\Phrasea\Cache\RedisCache'],
|
||||
['wincache', 'wincache', 'Alchemy\Phrasea\Cache\WincacheCache'],
|
||||
['wincachecache', 'wincache', 'Alchemy\Phrasea\Cache\WincacheCache'],
|
||||
['xcache', 'xcache', 'Alchemy\Phrasea\Cache\XcacheCache'],
|
||||
['xcachecache', 'xcache', 'Alchemy\Phrasea\Cache\XcacheCache'],
|
||||
];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user