final class LocalFile

Reads a local source document within the 16 MiB limit.

Methods§

public function read(string $path): string

Reads a file.

Parameters

$pathstringThe absolute path

Returns

string The contents; an empty string for a directory

Throws

RuntimeException When the file cannot be read or exceeds 16 MiB
Test cases 7
Called from 1
Calls 6

Test cases 21§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 7
Other tests reaching this symbol 14

Relations§

Instantiated in 1
Method calls 1