Skip to content

Commit

Permalink
Merge branch 'cs/zendframework/zendframework#6872-php-cs-fixer-automa…
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed Nov 14, 2014
2 parents 8d4ba9f + 2c7ef78 commit 5e9fa16
Show file tree
Hide file tree
Showing 26 changed files with 12 additions and 34 deletions.
1 change: 0 additions & 1 deletion AbstractAdapterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
*/
class AbstractAdapterTest extends \PHPUnit_Framework_TestCase
{

/**
* Mock of the abstract storage adapter
*
Expand Down
1 change: 0 additions & 1 deletion AbstractDbaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*/
abstract class AbstractDbaTest extends CommonAdapterTest
{

protected $handler;
protected $temporaryDbaFile;

Expand Down
1 change: 0 additions & 1 deletion AbstractZendServerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
*/
class AbstractZendServerTest extends \PHPUnit_Framework_TestCase
{

public function setUp()
{
$this->_options = new AdapterOptions();
Expand Down
1 change: 0 additions & 1 deletion ApcTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*/
class ApcTest extends CommonAdapterTest
{

/**
* Restore 'apc.use_request_time'
*
Expand Down
1 change: 0 additions & 1 deletion BlackHoleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
*/
class BlackHoleTest extends \PHPUnit_Framework_TestCase
{

/**
* The storage adapter
*
Expand Down
12 changes: 6 additions & 6 deletions CommonAdapterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -755,9 +755,9 @@ public function testCheckAndSetItem()

public function testIncrementItem()
{
$this->assertTrue($this->_storage->setItem('counter', 10));
$this->assertEquals(15, $this->_storage->incrementItem('counter', 5));
$this->assertEquals(15, $this->_storage->getItem('counter'));
$this->assertTrue($this->_storage->setItem('counter', 10));
$this->assertEquals(15, $this->_storage->incrementItem('counter', 5));
$this->assertEquals(15, $this->_storage->getItem('counter'));
}

public function testIncrementItemInitialValue()
Expand Down Expand Up @@ -802,9 +802,9 @@ public function testIncrementItemsReturnsEmptyArrayIfNonWritable()

public function testDecrementItem()
{
$this->assertTrue($this->_storage->setItem('counter', 30));
$this->assertEquals(25, $this->_storage->decrementItem('counter', 5));
$this->assertEquals(25, $this->_storage->getItem('counter'));
$this->assertTrue($this->_storage->setItem('counter', 30));
$this->assertEquals(25, $this->_storage->decrementItem('counter', 5));
$this->assertEquals(25, $this->_storage->getItem('counter'));
}

public function testDecrementItemInitialValue()
Expand Down
1 change: 0 additions & 1 deletion DbaDb2Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

namespace ZendTest\Cache\Storage\Adapter;

use Zend\Cache;

/**
* @group Zend_Cache
Expand Down
1 change: 0 additions & 1 deletion DbaDb3Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

namespace ZendTest\Cache\Storage\Adapter;

use Zend\Cache;

/**
* @group Zend_Cache
Expand Down
1 change: 0 additions & 1 deletion DbaDb4Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

namespace ZendTest\Cache\Storage\Adapter;

use Zend\Cache;

/**
* @group Zend_Cache
Expand Down
1 change: 0 additions & 1 deletion DbaFlatfileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

namespace ZendTest\Cache\Storage\Adapter;

use Zend\Cache;

/**
* @group Zend_Cache
Expand Down
1 change: 0 additions & 1 deletion DbaGdbmTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

namespace ZendTest\Cache\Storage\Adapter;

use Zend\Cache;

/**
* @group Zend_Cache
Expand Down
1 change: 0 additions & 1 deletion DbaInifileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

namespace ZendTest\Cache\Storage\Adapter;

use Zend\Cache;

/**
* @group Zend_Cache
Expand Down
1 change: 0 additions & 1 deletion DbaQdbmTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

namespace ZendTest\Cache\Storage\Adapter;

use Zend\Cache;

/**
* @group Zend_Cache
Expand Down
9 changes: 6 additions & 3 deletions FilesystemTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
*/
class FilesystemTest extends CommonAdapterTest
{

protected $_tmpCacheDir;
protected $_umask;

Expand Down Expand Up @@ -130,7 +129,9 @@ public function testSetCacheDirNotWritableException()

// create a not writable temporaty directory
$testDir = tempnam(sys_get_temp_dir(), 'ZendTest');
unlink($testDir); mkdir($testDir); chmod($testDir, 0557);
unlink($testDir);
mkdir($testDir);
chmod($testDir, 0557);

try {
$this->_options->setCacheDir($testDir);
Expand All @@ -157,7 +158,9 @@ public function testSetCacheDirNotReadableException()

// create a not readable temporaty directory
$testDir = tempnam(sys_get_temp_dir(), 'ZendTest');
unlink($testDir); mkdir($testDir); chmod($testDir, 0337);
unlink($testDir);
mkdir($testDir);
chmod($testDir, 0337);

try {
$this->_options->setCacheDir($testDir);
Expand Down
1 change: 0 additions & 1 deletion KeyListIteratorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
*/
class KeyListIteratorTest extends \PHPUnit_Framework_TestCase
{

public function testCount()
{
$keys = array('key1', 'key2', 'key3');
Expand Down
1 change: 0 additions & 1 deletion MemcacheResourceManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
*/
class MemcacheResourceManagerTest extends \PHPUnit_Framework_TestCase
{

/**
* The resource manager
*
Expand Down
1 change: 0 additions & 1 deletion MemcacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*/
class MemcacheTest extends CommonAdapterTest
{

public function setUp()
{
if (!defined('TESTS_ZEND_CACHE_MEMCACHE_ENABLED') || !TESTS_ZEND_CACHE_MEMCACHE_ENABLED) {
Expand Down
1 change: 0 additions & 1 deletion MemcachedResourceManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
*/
class MemcachedResourceManagerTest extends \PHPUnit_Framework_TestCase
{

/**
* The resource manager
*
Expand Down
1 change: 0 additions & 1 deletion MemcachedTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*/
class MemcachedTest extends CommonAdapterTest
{

public function setUp()
{
if (!defined('TESTS_ZEND_CACHE_MEMCACHED_ENABLED') || !TESTS_ZEND_CACHE_MEMCACHED_ENABLED) {
Expand Down
1 change: 0 additions & 1 deletion MemoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*/
class MemoryTest extends CommonAdapterTest
{

public function setUp()
{
// instantiate memory adapter
Expand Down
2 changes: 0 additions & 2 deletions RedisTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

class RedisTest extends CommonAdapterTest
{

/**
*
* @var Cache\Storage\Adapter\RedisOptions
Expand Down Expand Up @@ -313,5 +312,4 @@ public function testOptionsGetSetPassword()
$this->_options->setPassword($password);
$this->assertEquals($password, $this->_options->getPassword(), 'Password was set incorrectly using RedisOptions');
}

}
1 change: 0 additions & 1 deletion SessionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
*/
class SessionTest extends CommonAdapterTest
{

public function setUp()
{
$_SESSION = array();
Expand Down
1 change: 0 additions & 1 deletion WinCacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
*/
class WinCacheTest extends CommonAdapterTest
{

public function setUp()
{
if (!defined('TESTS_ZEND_CACHE_WINCACHE_ENABLED') || !TESTS_ZEND_CACHE_WINCACHE_ENABLED) {
Expand Down
1 change: 0 additions & 1 deletion XCacheTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*/
class XCacheTest extends CommonAdapterTest
{

protected $backupServerArray;

public function setUp()
Expand Down
1 change: 0 additions & 1 deletion ZendServerDiskTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
*/
class ZendServerDiskTest extends CommonAdapterTest
{

public function setUp()
{
if (!defined('TESTS_ZEND_CACHE_ZEND_SERVER_ENABLED') || !TESTS_ZEND_CACHE_ZEND_SERVER_ENABLED) {
Expand Down
1 change: 0 additions & 1 deletion ZendServerShmTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
*/
class ZendServerShmTest extends CommonAdapterTest
{

public function setUp()
{
if (!defined('TESTS_ZEND_CACHE_ZEND_SERVER_ENABLED') || !TESTS_ZEND_CACHE_ZEND_SERVER_ENABLED) {
Expand Down

0 comments on commit 5e9fa16

Please sign in to comment.