Skip to content

Commit

Permalink
Let code style checker to fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Magomogo committed May 19, 2020
1 parent f91b878 commit d672fcc
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 20 deletions.
1 change: 0 additions & 1 deletion src/Stash/Driver/Ephemeral.php
Expand Up @@ -183,5 +183,4 @@ protected static function positiveIntegerOption(array $options, $optionName, $de

return $default;
}

}
12 changes: 6 additions & 6 deletions tests/Stash/Test/Driver/EphemeralTest.php
Expand Up @@ -99,15 +99,15 @@ public function testEviction()
$expire = time() + 100;
$driver->storeData(['fred'], 'tuttle', $expire);
$this->assertArraySubset(
['data' => 'tuttle', 'expiration' => $expire],
$driver->getData(['fred'])
['data' => 'tuttle', 'expiration' => $expire],
$driver->getData(['fred'])
);

$driver->storeData(['foo'], 'bar', $expire);
$this->assertFalse($driver->getData(['fred']));
$this->assertArraySubset(
['data' => 'bar', 'expiration' => $expire],
$driver->getData(['foo'])
['data' => 'bar', 'expiration' => $expire],
$driver->getData(['foo'])
);
}

Expand All @@ -125,8 +125,8 @@ public function testNoEvictionWithDefaultOptions()

for ($i = 1; $i <= 5; ++$i) {
$this->assertArraySubset(
['data' => "value$i", 'expiration' => $expire],
$driver->getData(["item$i"])
['data' => "value$i", 'expiration' => $expire],
$driver->getData(["item$i"])
);
}
}
Expand Down
6 changes: 3 additions & 3 deletions tests/Stash/Test/ItemLoggerTest.php
Expand Up @@ -62,7 +62,7 @@ public function testGet()

$this->assertInstanceOf(
'Stash\Test\Exception\TestException',
$logger->lastContext['exception'],
$logger->lastContext['exception'],
'Logger was passed exception in event context.'
);

Expand All @@ -82,7 +82,7 @@ public function testSet()

$this->assertInstanceOf(
'Stash\Test\Exception\TestException',
$logger->lastContext['exception'],
$logger->lastContext['exception'],
'Logger was passed exception in event context.'
);
$this->assertTrue(strlen($logger->lastMessage) > 0, 'Logger message set after "set" exception.');
Expand All @@ -101,7 +101,7 @@ public function testClear()

$this->assertInstanceOf(
'Stash\Test\Exception\TestException',
$logger->lastContext['exception'],
$logger->lastContext['exception'],
'Logger was passed exception in event context.'
);
$this->assertTrue(strlen($logger->lastMessage) > 0, 'Logger message set after "clear" exception.');
Expand Down
20 changes: 10 additions & 10 deletions tests/Stash/Test/SessionTest.php
Expand Up @@ -41,17 +41,17 @@ public function testReadAndWrite()
$this->assertSame(
'',
$session->read('session_id'),
'Empty session returns empty string.'
'Empty session returns empty string.'
);

$this->assertTrue(
$session->write('session_id', 'session_data'),
'Data was written to the session.'
'Data was written to the session.'
);
$this->assertSame(
'session_data',
$session->read('session_id'),
'Active session returns session data.'
'Active session returns session data.'
);
}

Expand All @@ -72,7 +72,7 @@ public function testOpen()

$this->assertTrue(
$DataA != $DataB,
'Sessions with different paths do not share data.'
'Sessions with different paths do not share data.'
);

$pool = $this->getPool();
Expand All @@ -90,7 +90,7 @@ public function testOpen()

$this->assertTrue(
$DataA != $DataB,
'Sessions with different names do not share data.'
'Sessions with different names do not share data.'
);
}

Expand All @@ -99,7 +99,7 @@ public function testClose()
$session = $this->getSession();
$this->assertTrue(
$session->close(),
'Session was closed'
'Session was closed'
);
}

Expand All @@ -112,18 +112,18 @@ public function testDestroy()
$this->assertSame(
'session_data',
$session->read('session_id'),
'Active session returns session data.'
'Active session returns session data.'
);

$this->assertTrue(
$session->destroy('session_id'),
'Data was removed from the session.'
'Data was removed from the session.'
);

$this->assertSame(
'',
$session->read('session_id'),
'Destroyed session returns empty string.'
'Destroyed session returns empty string.'
);
}

Expand All @@ -142,7 +142,7 @@ public function testGarbageCollect()
$this->assertSame(
'',
$sessionC->read('session_id'),
'Purged session returns empty string.'
'Purged session returns empty string.'
);
}

Expand Down

0 comments on commit d672fcc

Please sign in to comment.