◆ nonScalarValuesProvider()
static ForumNotificationCacheTest::nonScalarValuesProvider |
( |
| ) |
|
|
static |
◆ scalarValuesAndNullProvider()
static ForumNotificationCacheTest::scalarValuesAndNullProvider |
( |
| ) |
|
|
static |
Definition at line 61 of file ForumNotificationCacheTest.php.
References null.
64 'Float Type' => [4.0],
65 'String Type' => [
'4'],
66 'Boolean Type' => [
false],
67 'Integer Type' => [4],
68 'Null Type' => [
null],
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
◆ testCacheItemResultsInCacheHit()
ForumNotificationCacheTest::testCacheItemResultsInCacheHit |
( |
| ) |
|
Definition at line 34 of file ForumNotificationCacheTest.php.
37 $cache->store(
'item',
'ilias');
39 $this->assertTrue($cache->exists(
'item'));
40 $this->assertSame(
'ilias', $cache->fetch(
'item'));
Class ilForumNotificationCache.
◆ testCacheKeyCouldBeGeneratedByArray()
ForumNotificationCacheTest::testCacheKeyCouldBeGeneratedByArray |
( |
|
$scalarValue | ) |
|
- Parameters
-
scalar | null | $scalarValue | |
Definition at line 76 of file ForumNotificationCacheTest.php.
79 $key = $cache->createKeyByValues([$scalarValue, $scalarValue]);
81 $this->assertNotEmpty($key);
82 $this->assertSame(32, strlen($key));
Class ilForumNotificationCache.
◆ testExceptionIsRaisedWhenKeyShouldBeBuiltWithNonScalarValues()
ForumNotificationCacheTest::testExceptionIsRaisedWhenKeyShouldBeBuiltWithNonScalarValues |
( |
mixed |
$nonScalarValue | ) |
|
Definition at line 53 of file ForumNotificationCacheTest.php.
55 $this->expectException(InvalidArgumentException::class);
58 $cache->createKeyByValues([$nonScalarValue, $nonScalarValue]);
Class ilForumNotificationCache.
◆ testExceptionIsRaisedWhenTryingToRetrieveItemNotCachedYet()
ForumNotificationCacheTest::testExceptionIsRaisedWhenTryingToRetrieveItemNotCachedYet |
( |
| ) |
|
Definition at line 26 of file ForumNotificationCacheTest.php.
28 $this->expectException(InvalidArgumentException::class);
31 $cache->fetch(
'item');
Class ilForumNotificationCache.
The documentation for this class was generated from the following file: