mirror of
https://github.com/Intervention/image.git
synced 2025-01-18 04:38:26 +01:00
17 lines
452 B
PHP
17 lines
452 B
PHP
<?php
|
|
|
|
use Intervention\Image\File;
|
|
|
|
class FileTest extends PHPUnit_Framework_TestCase
|
|
{
|
|
public function testSetFileInfoFromPath()
|
|
{
|
|
$file = new File;
|
|
$file->setFileInfoFromPath('test/foo/bar.baz');
|
|
$this->assertEquals('test/foo', $file->dirname);
|
|
$this->assertEquals('bar.baz', $file->basename);
|
|
$this->assertEquals('baz', $file->extension);
|
|
$this->assertEquals('bar', $file->filename);
|
|
}
|
|
}
|