@@ -43,14 +43,14 @@ |
||
| 43 | 43 | public function testGetSearchAttributes() |
| 44 | 44 | { |
| 45 | 45 | foreach( $this->object->getSearchAttributes() as $attr ) { |
| 46 | - $this->assertInstanceOf('\\Aimeos\\MW\\Criteria\\Attribute\\Iface', $attr ); |
|
| 46 | + $this->assertInstanceOf( '\\Aimeos\\MW\\Criteria\\Attribute\\Iface', $attr ); |
|
| 47 | 47 | } |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | |
| 51 | 51 | public function testGetSubManager() |
| 52 | 52 | { |
| 53 | - $this->setExpectedException('\\Aimeos\\MAdmin\\Exception'); |
|
| 53 | + $this->setExpectedException( '\\Aimeos\\MAdmin\\Exception' ); |
|
| 54 | 54 | $this->object->getSubManager( 'unknown' ); |
| 55 | 55 | } |
| 56 | 56 | |
@@ -158,9 +158,12 @@ |
||
| 158 | 158 | |
| 159 | 159 | public function testGetCache() |
| 160 | 160 | { |
| 161 | - try { |
|
| 161 | + try |
|
| 162 | + { |
|
| 162 | 163 | $this->assertInstanceOf( '\\Aimeos\\MW\\Cache\\Iface', $this->object->getCache() ); |
| 163 | - } catch( \Aimeos\MAdmin\Cache\Exception $e ) { |
|
| 164 | + } |
|
| 165 | + catch( \Aimeos\MAdmin\Cache\Exception $e ) |
|
| 166 | + { |
|
| 164 | 167 | $this->markTestSkipped( 'Please install Predis client first' ); |
| 165 | 168 | } |
| 166 | 169 | } |
@@ -4,16 +4,16 @@ |
||
| 4 | 4 | * Set error reporting to maximum |
| 5 | 5 | */ |
| 6 | 6 | error_reporting( -1 ); |
| 7 | -ini_set('display_errors', '1'); |
|
| 7 | +ini_set( 'display_errors', '1' ); |
|
| 8 | 8 | |
| 9 | 9 | |
| 10 | 10 | /* |
| 11 | 11 | * Set locale settings to reasonable defaults |
| 12 | 12 | */ |
| 13 | -setlocale(LC_ALL, 'en_US.UTF-8'); |
|
| 14 | -setlocale(LC_NUMERIC, 'POSIX'); |
|
| 15 | -setlocale(LC_CTYPE, 'en_US.UTF-8'); |
|
| 16 | -setlocale(LC_TIME, 'POSIX'); |
|
| 13 | +setlocale( LC_ALL, 'en_US.UTF-8' ); |
|
| 14 | +setlocale( LC_NUMERIC, 'POSIX' ); |
|
| 15 | +setlocale( LC_CTYPE, 'en_US.UTF-8' ); |
|
| 16 | +setlocale( LC_TIME, 'POSIX' ); |
|
| 17 | 17 | |
| 18 | 18 | |
| 19 | 19 | require_once 'TestHelper.php'; |
@@ -85,7 +85,7 @@ |
||
| 85 | 85 | { |
| 86 | 86 | self::checkClass( '\\Aimeos\\MAdmin\\Cache\\Item\\Iface', $item ); |
| 87 | 87 | |
| 88 | - if( ! $item->isModified() ) { |
|
| 88 | + if( !$item->isModified() ) { |
|
| 89 | 89 | return; |
| 90 | 90 | } |
| 91 | 91 | |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | foreach( $this->client->mget( $actkeys ) as $idx => $value ) |
| 154 | 154 | { |
| 155 | 155 | if( $value !== null && isset( $keys[$idx] ) ) { |
| 156 | - $result[ $keys[$idx] ] = $value; |
|
| 156 | + $result[$keys[$idx]] = $value; |
|
| 157 | 157 | } |
| 158 | 158 | } |
| 159 | 159 | |
@@ -220,7 +220,7 @@ discard block |
||
| 220 | 220 | $pipe = $this->client->pipeline(); |
| 221 | 221 | |
| 222 | 222 | foreach( $pairs as $key => $value ) { |
| 223 | - $actpairs[ $this->siteid . $key ] = $value; |
|
| 223 | + $actpairs[$this->siteid . $key] = $value; |
|
| 224 | 224 | } |
| 225 | 225 | |
| 226 | 226 | $pipe->mset( $actpairs ); |