1
0
mirror of https://github.com/Intervention/image.git synced 2025-01-18 04:38:26 +01:00
intervention_image/tests/FileTest.php
Oliver Vogel 9bb6b213c2 v2
2014-05-10 20:35:01 +02:00

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);
}
}