Use short array declaration

This commit is contained in:
Romain Neutron
2013-11-18 11:58:12 +01:00
parent 2898b317c4
commit 56b373ee6e
723 changed files with 8350 additions and 8352 deletions

View File

@@ -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'],
];
}
}