Class PageReadingTimeTest.
More...
◆ mixedReadingTypesProvider()
| static ILIAS\ContentPage\PageReadingTimeTest::mixedReadingTypesProvider |
( |
| ) |
|
|
static |
Definition at line 34 of file PageReadingTimeTest.php.
37 'Float Type' => [4.0],
38 'String Type' => [
'4'],
39 'Array Type' => [[4]],
41 'Boolean Type' => [
false],
42 'Null Type' => [null],
43 'Ressource Type' => [fopen(
'php://temp',
'rb')]
◆ testPageReadingTimeValueThrowsExceptionWhenConstructedWithInvalidTypes()
| ILIAS\ContentPage\PageReadingTimeTest::testPageReadingTimeValueThrowsExceptionWhenConstructedWithInvalidTypes |
( |
|
$mixedType | ) |
|
- Parameters
-
| mixed | $mixedType | mixedReadingTypesProvider |
Definition at line 51 of file PageReadingTimeTest.php.
53 $this->expectException(TypeError::class);
55 $readingTime =
new PageReadingTime($mixedType);
◆ testRawReadingTimeCanBeRetrievedFromValueObject()
| ILIAS\ContentPage\PageReadingTimeTest::testRawReadingTimeCanBeRetrievedFromValueObject |
( |
| ) |
|
Definition at line 58 of file PageReadingTimeTest.php.
60 $readingTime =
new PageReadingTime(5);
61 $this->assertSame(5, $readingTime->minutes());
The documentation for this class was generated from the following file: