home
/
zktecojo
/
public_html
/
vendor
/
intervention
/
image
/
tests
➕ New
📤 Upload
✎ Editing:
FileTest.php
← Back
<?php use Intervention\Image\File; class FileTest extends PHPUnit_Framework_TestCase { public function testSetFileInfoFromPath() { $file = new File; $file->setFileInfoFromPath('tests/images/test.jpg'); $this->assertEquals('tests/images', $file->dirname); $this->assertEquals('test.jpg', $file->basename); $this->assertEquals('jpg', $file->extension); $this->assertEquals('test', $file->filename); $this->assertEquals('image/jpeg', $file->mime); } }
💾 Save Changes
Cancel
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel