|
ILIAS
trunk Revision v13.0_alpha-62-g3b72d83f2e5
|
Temporary files are removed by a shutdown function as soon as the request exits, header based delivery (X-Sendfile, X-Accel) opens them only afterwards. More...
Inheritance diagram for ILIAS\Tests\FileDelivery\Delivery\StreamDeliveryTest:
Collaboration diagram for ILIAS\Tests\FileDelivery\Delivery\StreamDeliveryTest:Public Member Functions | |
| testTemporaryFileIsDeliveredByTheFallback () | |
| testRegularFileIsDeliveredByTheConfiguredBuilder () | |
| testMemoryStreamIsDeliveredByTheFallback () | |
Protected Member Functions | |
| tearDown () | |
Private Member Functions | |
| assertDeliveredBy (string $expected, FileStream $stream) | |
| builder (string $name, bool $used, ResponseInterface $response) | |
| requestTo (string $uri) | |
Private Attributes | |
| string | $temp_file = null |
Temporary files are removed by a shutdown function as soon as the request exits, header based delivery (X-Sendfile, X-Accel) opens them only afterwards.
They must be streamed by PHP, see https://mantis.ilias.de/view.php?id=48367
Definition at line 41 of file StreamDeliveryTest.php.
|
private |
Definition at line 79 of file StreamDeliveryTest.php.
References ILIAS\BookingManager\Common\Table\$http, $response, ILIAS\Tests\FileDelivery\Delivery\StreamDeliveryTest\builder(), ILIAS\Tests\FileDelivery\Delivery\StreamDeliveryTest\requestTo(), and ILIAS\Scripts\PHPStan\str_repeat.
Referenced by ILIAS\Tests\FileDelivery\Delivery\StreamDeliveryTest\testMemoryStreamIsDeliveredByTheFallback(), ILIAS\Tests\FileDelivery\Delivery\StreamDeliveryTest\testRegularFileIsDeliveredByTheConfiguredBuilder(), and ILIAS\Tests\FileDelivery\Delivery\StreamDeliveryTest\testTemporaryFileIsDeliveredByTheFallback().
Here is the call graph for this function:
Here is the caller graph for this function:
|
private |
Definition at line 103 of file StreamDeliveryTest.php.
References $response.
Referenced by ILIAS\Tests\FileDelivery\Delivery\StreamDeliveryTest\assertDeliveredBy().
Here is the caller graph for this function:
|
private |
Definition at line 114 of file StreamDeliveryTest.php.
References $request.
Referenced by ILIAS\Tests\FileDelivery\Delivery\StreamDeliveryTest\assertDeliveredBy().
Here is the caller graph for this function:
|
protected |
Definition at line 45 of file StreamDeliveryTest.php.
| ILIAS\Tests\FileDelivery\Delivery\StreamDeliveryTest::testMemoryStreamIsDeliveredByTheFallback | ( | ) |
Definition at line 71 of file StreamDeliveryTest.php.
References ILIAS\Tests\FileDelivery\Delivery\StreamDeliveryTest\assertDeliveredBy(), and ILIAS\Filesystem\Stream\Streams\ofString().
Here is the call graph for this function:| ILIAS\Tests\FileDelivery\Delivery\StreamDeliveryTest::testRegularFileIsDeliveredByTheConfiguredBuilder | ( | ) |
Definition at line 63 of file StreamDeliveryTest.php.
References ILIAS\Tests\FileDelivery\Delivery\StreamDeliveryTest\assertDeliveredBy(), and ILIAS\Filesystem\Stream\Streams\ofResource().
Here is the call graph for this function:| ILIAS\Tests\FileDelivery\Delivery\StreamDeliveryTest::testTemporaryFileIsDeliveredByTheFallback | ( | ) |
Definition at line 52 of file StreamDeliveryTest.php.
References ILIAS\Tests\FileDelivery\Delivery\StreamDeliveryTest\assertDeliveredBy(), and ILIAS\Filesystem\Stream\Streams\ofResource().
Here is the call graph for this function:
|
private |
Definition at line 43 of file StreamDeliveryTest.php.