@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | */ |
57 | 57 | public function setUp() { |
58 | 58 | parent::setUp(); |
59 | - $this->skipIf(!class_exists('Memcache'), 'Memcache is not installed or configured properly.'); |
|
59 | + $this->skipIf( ! class_exists('Memcache'), 'Memcache is not installed or configured properly.'); |
|
60 | 60 | |
61 | 61 | $this->_cacheDisable = Configure::read('Cache.disable'); |
62 | 62 | Configure::write('Cache.disable', false); |
@@ -115,13 +115,13 @@ discard block |
||
115 | 115 | foreach ($servers as $server) { |
116 | 116 | list($host, $port) = explode(':', $server); |
117 | 117 | //@codingStandardsIgnoreStart |
118 | - if (!@$Memcache->connect($host, $port)) { |
|
118 | + if ( ! @$Memcache->connect($host, $port)) { |
|
119 | 119 | $available = false; |
120 | 120 | } |
121 | 121 | //@codingStandardsIgnoreEnd |
122 | 122 | } |
123 | 123 | |
124 | - $this->skipIf(!$available, 'Need memcache servers at ' . implode(', ', $servers) . ' to run this test.'); |
|
124 | + $this->skipIf( ! $available, 'Need memcache servers at '.implode(', ', $servers).' to run this test.'); |
|
125 | 125 | |
126 | 126 | $Memcache = new MemcacheEngine(); |
127 | 127 | $Memcache->init(array('engine' => 'Memcache', 'servers' => $servers)); |
@@ -33,7 +33,7 @@ |
||
33 | 33 | */ |
34 | 34 | public function setUp() { |
35 | 35 | parent::setUp(); |
36 | - $this->skipIf(!class_exists('Redis'), 'Redis is not installed or configured properly.'); |
|
36 | + $this->skipIf( ! class_exists('Redis'), 'Redis is not installed or configured properly.'); |
|
37 | 37 | |
38 | 38 | $this->_cacheDisable = Configure::read('Cache.disable'); |
39 | 39 | Configure::write('Cache.disable', false); |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | */ |
33 | 33 | public function setUp() { |
34 | 34 | parent::setUp(); |
35 | - $this->skipIf(!function_exists('wincache_ucache_set'), 'Wincache is not installed or configured properly.'); |
|
35 | + $this->skipIf( ! function_exists('wincache_ucache_set'), 'Wincache is not installed or configured properly.'); |
|
36 | 36 | $this->_cacheDisable = Configure::read('Cache.disable'); |
37 | 37 | Configure::write('Cache.disable', false); |
38 | 38 | Cache::config('wincache', array('engine' => 'Wincache', 'prefix' => 'cake_')); |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | */ |
130 | 130 | public function testDecrement() { |
131 | 131 | $this->skipIf( |
132 | - !function_exists('wincache_ucache_dec'), |
|
132 | + ! function_exists('wincache_ucache_dec'), |
|
133 | 133 | 'No wincache_ucache_dec() function, cannot test decrement().' |
134 | 134 | ); |
135 | 135 | |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | */ |
157 | 157 | public function testIncrement() { |
158 | 158 | $this->skipIf( |
159 | - !function_exists('wincache_ucache_inc'), |
|
159 | + ! function_exists('wincache_ucache_inc'), |
|
160 | 160 | 'No wincache_inc() function, cannot test increment().' |
161 | 161 | ); |
162 | 162 |
@@ -32,7 +32,7 @@ |
||
32 | 32 | */ |
33 | 33 | public function setUp() { |
34 | 34 | parent::setUp(); |
35 | - if (!function_exists('xcache_set')) { |
|
35 | + if ( ! function_exists('xcache_set')) { |
|
36 | 36 | $this->markTestSkipped('Xcache is not installed or configured properly'); |
37 | 37 | } |
38 | 38 | $this->_cacheDisable = Configure::read('Cache.disable'); |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | */ |
53 | 53 | public function setUp() { |
54 | 54 | parent::setUp(); |
55 | - $this->path = CAKE . 'Test' . DS . 'test_app' . DS . 'Config' . DS; |
|
55 | + $this->path = CAKE.'Test'.DS.'test_app'.DS.'Config'.DS; |
|
56 | 56 | } |
57 | 57 | |
58 | 58 | /** |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | */ |
215 | 215 | public function testReadPluginValue() { |
216 | 216 | App::build(array( |
217 | - 'Plugin' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS) |
|
217 | + 'Plugin' => array(CAKE.'Test'.DS.'test_app'.DS.'Plugin'.DS) |
|
218 | 218 | ), App::RESET); |
219 | 219 | CakePlugin::load('TestPlugin'); |
220 | 220 | $reader = new IniReader($this->path); |
@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | */ |
238 | 238 | public function testReadPluginSpecialAclIniPhpValue() { |
239 | 239 | App::build(array( |
240 | - 'Plugin' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS) |
|
240 | + 'Plugin' => array(CAKE.'Test'.DS.'test_app'.DS.'Plugin'.DS) |
|
241 | 241 | ), App::RESET); |
242 | 242 | CakePlugin::load('TestPlugin'); |
243 | 243 | $reader = new IniReader($this->path); |
@@ -270,7 +270,7 @@ discard block |
||
270 | 270 | [Asset] |
271 | 271 | timestamp = force |
272 | 272 | INI; |
273 | - $file = TMP . 'test.ini'; |
|
273 | + $file = TMP.'test.ini'; |
|
274 | 274 | $result = file_get_contents($file); |
275 | 275 | unlink($file); |
276 | 276 | |
@@ -293,7 +293,7 @@ discard block |
||
293 | 293 | $reader = new IniReader(TMP); |
294 | 294 | $reader->dump('test.ini', $this->testData); |
295 | 295 | $result = $reader->read('test.ini'); |
296 | - unlink(TMP . 'test.ini'); |
|
296 | + unlink(TMP.'test.ini'); |
|
297 | 297 | |
298 | 298 | $expected = $this->testData; |
299 | 299 | $expected['One']['is_null'] = false; |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | */ |
53 | 53 | public function setUp() { |
54 | 54 | parent::setUp(); |
55 | - $this->path = CAKE . 'Test' . DS . 'test_app' . DS . 'Config' . DS; |
|
55 | + $this->path = CAKE.'Test'.DS.'test_app'.DS.'Config'.DS; |
|
56 | 56 | } |
57 | 57 | |
58 | 58 | /** |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | */ |
122 | 122 | public function testReadPluginValue() { |
123 | 123 | App::build(array( |
124 | - 'Plugin' => array(CAKE . 'Test' . DS . 'test_app' . DS . 'Plugin' . DS) |
|
124 | + 'Plugin' => array(CAKE.'Test'.DS.'test_app'.DS.'Plugin'.DS) |
|
125 | 125 | ), App::RESET); |
126 | 126 | CakePlugin::load('TestPlugin'); |
127 | 127 | $reader = new PhpReader($this->path); |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | ), |
163 | 163 | ); |
164 | 164 | PHP; |
165 | - $file = TMP . 'test.php'; |
|
165 | + $file = TMP.'test.php'; |
|
166 | 166 | $contents = file_get_contents($file); |
167 | 167 | |
168 | 168 | unlink($file); |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | $reader = new PhpReader(TMP); |
186 | 186 | $reader->dump('test.php', $this->testData); |
187 | 187 | $result = $reader->read('test.php'); |
188 | - unlink(TMP . 'test.php'); |
|
188 | + unlink(TMP.'test.php'); |
|
189 | 189 | |
190 | 190 | $this->assertEquals($this->testData, $result); |
191 | 191 | } |
@@ -34,7 +34,7 @@ |
||
34 | 34 | $suite = new CakeTestSuite('All console lib classes'); |
35 | 35 | |
36 | 36 | foreach (new DirectoryIterator(dirname(__FILE__)) as $file) { |
37 | - if (!$file->isFile() || strpos($file, 'All') === 0) { |
|
37 | + if ( ! $file->isFile() || strpos($file, 'All') === 0) { |
|
38 | 38 | continue; |
39 | 39 | } |
40 | 40 | $fileName = $file->getRealPath(); |
@@ -33,7 +33,7 @@ |
||
33 | 33 | public static function suite() { |
34 | 34 | $suite = new CakeTestSuite('All shell classes'); |
35 | 35 | |
36 | - $path = CORE_TEST_CASES . DS . 'Console' . DS . 'Command' . DS; |
|
36 | + $path = CORE_TEST_CASES.DS.'Console'.DS.'Command'.DS; |
|
37 | 37 | |
38 | 38 | $suite->addTestDirectory($path); |
39 | 39 | return $suite; |
@@ -33,7 +33,7 @@ |
||
33 | 33 | public static function suite() { |
34 | 34 | $suite = new CakeTestSuite('All Tasks tests'); |
35 | 35 | |
36 | - $path = CORE_TEST_CASES . DS . 'Console' . DS . 'Command' . DS . 'Task' . DS; |
|
36 | + $path = CORE_TEST_CASES.DS.'Console'.DS.'Command'.DS.'Task'.DS; |
|
37 | 37 | $suite->addTestDirectory($path); |
38 | 38 | return $suite; |
39 | 39 | } |