mirror of
https://github.com/Intervention/image.git
synced 2025-08-22 13:32:56 +02:00
Add File::fromPath()
This commit is contained in:
@@ -32,6 +32,13 @@ final class FileTest extends BaseTestCase
|
||||
$this->assertInstanceOf(File::class, $file);
|
||||
}
|
||||
|
||||
public function testFromPath(): void
|
||||
{
|
||||
$file = File::fromPath($this->getTestResourcePath());
|
||||
$this->assertInstanceOf(File::class, $file);
|
||||
$this->assertTrue($file->size() > 0);
|
||||
}
|
||||
|
||||
public function testSave(): void
|
||||
{
|
||||
$filename = __DIR__ . '/file_' . strval(hrtime(true)) . '.test';
|
||||
|
Reference in New Issue
Block a user