added another test

This commit is contained in:
John Bintz 2010-02-02 07:49:09 -05:00
parent 1e3f1f0ab0
commit 589d71999c
2 changed files with 7 additions and 0 deletions

View File

@ -51,4 +51,11 @@ class ComicPressBackendFilesystemTest extends PHPUnit_Framework_TestCase {
$this->assertEquals('url', $fs->url('type'));
}
function testGetImageSize() {
$result = $this->fs->_getimagesize(dirname(__FILE__) . '/../files/test.png');
$this->assertTrue(is_array($result));
$this->assertEquals(20, $result[0]);
$this->assertEquals(10, $result[1]);
}
}

BIN
test/files/test.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 226 B