class FakeFile in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/http-foundation/Tests/File/FakeFile.php \Symfony\Component\HttpFoundation\Tests\File\FakeFile
Hierarchy
Expanded class hierarchy of FakeFile
1 file declares its use of FakeFile
- BinaryFileResponseTest.php in vendor/
symfony/ http-foundation/ Tests/ BinaryFileResponseTest.php
File
- vendor/
symfony/ http-foundation/ Tests/ File/ FakeFile.php, line 16
Namespace
Symfony\Component\HttpFoundation\Tests\FileView source
class FakeFile extends OrigFile {
private $realpath;
public function __construct($realpath, $path) {
$this->realpath = $realpath;
parent::__construct($path, false);
}
public function isReadable() {
return true;
}
public function getRealpath() {
return $this->realpath;
}
public function getSize() {
return 42;
}
public function getMTime() {
return time();
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
FakeFile:: |
private | property | ||
FakeFile:: |
public | function | ||
FakeFile:: |
public | function | ||
FakeFile:: |
public | function | ||
FakeFile:: |
public | function | ||
FakeFile:: |
public | function |
Constructs a new file from the given path. Overrides File:: |
|
File:: |
public | function | Returns the mime type of the file. | |
File:: |
protected | function | Returns locale independent base name of the given path. | |
File:: |
protected | function | ||
File:: |
public | function | Returns the extension based on the mime type. | |
File:: |
public | function | Moves the file to a new location. | 1 |