ILIAS  release_7 Revision v7.30-3-g800a261c036
01-estimated-reading-time.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */
4
6{
7 global $DIC;
8
9 $refinery = $DIC->refinery();
10
11 $transformation = $refinery->string()->estimatedReadingTime(true);
12
13 $result = $transformation->transform('Lorem ipsum dolor sit amet, consetetur sadipscing elitr, <img src="#"/> ...');
14
15 return assert(1 === $result);
16}
estimatedReadingTime()
$result
An exception for terminatinating execution or to throw for unit testing.
global $DIC
Definition: goto.php:24