summaryrefslogtreecommitdiffstats
path: root/tests/lib/Cache/TestCache.php
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-10-05 15:12:57 +0200
committerMorris Jobke <hey@morrisjobke.de>2020-10-05 20:25:24 +0200
commitd9015a8c94bfd71fe484618a06d276701d3bf9ff (patch)
tree3f7a1cd6ec2fd982dd02de71b76076f7f01cef70 /tests/lib/Cache/TestCache.php
parentd357f4b10fe1b59e1e07bb90641d647522c7bfe2 (diff)
downloadnextcloud-server-d9015a8c94bfd71fe484618a06d276701d3bf9ff.tar.gz
nextcloud-server-d9015a8c94bfd71fe484618a06d276701d3bf9ff.zip
Format code to a single space around binary operators
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'tests/lib/Cache/TestCache.php')
-rw-r--r--tests/lib/Cache/TestCache.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/lib/Cache/TestCache.php b/tests/lib/Cache/TestCache.php
index 9dfc46eb5a0..1dd9761682d 100644
--- a/tests/lib/Cache/TestCache.php
+++ b/tests/lib/Cache/TestCache.php
@@ -26,19 +26,19 @@ abstract class TestCache extends \Test\TestCase {
$this->assertNull($this->instance->get('value1'));
$this->assertFalse($this->instance->hasKey('value1'));
- $value='foobar';
+ $value = 'foobar';
$this->instance->set('value1', $value);
$this->assertTrue($this->instance->hasKey('value1'));
- $received=$this->instance->get('value1');
+ $received = $this->instance->get('value1');
$this->assertEquals($value, $received, 'Value received from cache not equal to the original');
- $value='ipsum lorum';
+ $value = 'ipsum lorum';
$this->instance->set('value1', $value);
- $received=$this->instance->get('value1');
+ $received = $this->instance->get('value1');
$this->assertEquals($value, $received, 'Value not overwritten by second set');
- $value2='foobar';
+ $value2 = 'foobar';
$this->instance->set('value2', $value2);
- $received2=$this->instance->get('value2');
+ $received2 = $this->instance->get('value2');
$this->assertTrue($this->instance->hasKey('value1'));
$this->assertTrue($this->instance->hasKey('value2'));
$this->assertEquals($value, $received, 'Value changed while setting other variable');
@@ -52,7 +52,7 @@ abstract class TestCache extends \Test\TestCase {
}
public function testClear() {
- $value='ipsum lorum';
+ $value = 'ipsum lorum';
$this->instance->set('1_value1', $value . '1');
$this->instance->set('1_value2', $value . '2');
$this->instance->set('2_value1', $value . '3');