Definition at line 29 of file PageReadingTimeTest.php.
◆ mixedReadingTypesProvider()
static ILIAS\ContentPage\PageReadingTimeTest::mixedReadingTypesProvider |
( |
| ) |
|
|
static |
Definition at line 31 of file PageReadingTimeTest.php.
References null.
34 'Float Type' => [4.0],
35 'String Type' => [
'4'],
36 'Array Type' => [[4]],
38 'Boolean Type' => [
false],
39 'Null Type' => [
null],
40 'Ressource Type' => [fopen(
'php://temp',
'rb')]
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
◆ testPageReadingTimeValueThrowsExceptionWhenConstructedWithInvalidTypes()
ILIAS\ContentPage\PageReadingTimeTest::testPageReadingTimeValueThrowsExceptionWhenConstructedWithInvalidTypes |
( |
mixed |
$mixedType | ) |
|
Definition at line 45 of file PageReadingTimeTest.php.
47 $this->expectException(TypeError::class);
49 $readingTime =
new PageReadingTime($mixedType);
◆ testRawReadingTimeCanBeRetrievedFromValueObject()
ILIAS\ContentPage\PageReadingTimeTest::testRawReadingTimeCanBeRetrievedFromValueObject |
( |
| ) |
|
Definition at line 52 of file PageReadingTimeTest.php.
54 $readingTime =
new PageReadingTime(5);
55 $this->assertSame(5, $readingTime->minutes());
The documentation for this class was generated from the following file: