You are here

public function FakeFile::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/Tests/File/FakeFile.php \Symfony\Component\HttpFoundation\Tests\File\FakeFile::__construct()

Constructs a new file from the given path.

Parameters

string $path The path to the file:

bool $checkPath Whether to check the path or not:

Throws

FileNotFoundException If the given path is not a file

Overrides File::__construct

File

vendor/symfony/http-foundation/Tests/File/FakeFile.php, line 20

Class

FakeFile

Namespace

Symfony\Component\HttpFoundation\Tests\File

Code

public function __construct($realpath, $path) {
  $this->realpath = $realpath;
  parent::__construct($path, false);
}