mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-11-04 06:37:55 +08:00 
			
		
		
		
	@ -29,7 +29,7 @@ class MemCacheTest extends CacheTestCase
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        // check whether memcached is running and skip tests if not.
 | 
					        // check whether memcached is running and skip tests if not.
 | 
				
			||||||
        if (!@stream_socket_client('127.0.0.1:11211', $errorNumber, $errorDescription, 0.5)) {
 | 
					        if (!@stream_socket_client('127.0.0.1:11211', $errorNumber, $errorDescription, 0.5)) {
 | 
				
			||||||
            $this->markTestSkipped('No redis server running at ' . '127.0.0.1:11211' . ' : ' . $errorNumber . ' - ' . $errorDescription);
 | 
					            $this->markTestSkipped('No memcached server running at ' . '127.0.0.1:11211' . ' : ' . $errorNumber . ' - ' . $errorDescription);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if ($this->_cacheInstance === null) {
 | 
					        if ($this->_cacheInstance === null) {
 | 
				
			||||||
 | 
				
			|||||||
@ -29,7 +29,7 @@ class MemCachedTest extends CacheTestCase
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        // check whether memcached is running and skip tests if not.
 | 
					        // check whether memcached is running and skip tests if not.
 | 
				
			||||||
        if (!@stream_socket_client('127.0.0.1:11211', $errorNumber, $errorDescription, 0.5)) {
 | 
					        if (!@stream_socket_client('127.0.0.1:11211', $errorNumber, $errorDescription, 0.5)) {
 | 
				
			||||||
            $this->markTestSkipped('No redis server running at ' . '127.0.0.1:11211' . ' : ' . $errorNumber . ' - ' . $errorDescription);
 | 
					            $this->markTestSkipped('No memcached server running at ' . '127.0.0.1:11211' . ' : ' . $errorNumber . ' - ' . $errorDescription);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if ($this->_cacheInstance === null) {
 | 
					        if ($this->_cacheInstance === null) {
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user