aboutsummaryrefslogtreecommitdiffstats
path: root/tests/upload
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2015-04-07 16:19:36 +0200
committerMarc Alexander <admin@m-a-styles.de>2015-04-24 13:33:14 +0200
commit39d6180c6814996dde84cfcd8c0150bba37354ac (patch)
treebf5bb1d69e0416a5d84ce6f76fdcee72605a80e4 /tests/upload
parent3fc7a352ff308ff4b5a038e807a6f803572242d5 (diff)
downloadforums-39d6180c6814996dde84cfcd8c0150bba37354ac.tar
forums-39d6180c6814996dde84cfcd8c0150bba37354ac.tar.gz
forums-39d6180c6814996dde84cfcd8c0150bba37354ac.tar.bz2
forums-39d6180c6814996dde84cfcd8c0150bba37354ac.tar.xz
forums-39d6180c6814996dde84cfcd8c0150bba37354ac.zip
[ticket/8672] Use fastImageSize in classes
PHPBB3-8672
Diffstat (limited to 'tests/upload')
-rw-r--r--tests/upload/imagesize_test.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/upload/imagesize_test.php b/tests/upload/imagesize_test.php
index 2ce712e5c1..bfea4b819d 100644
--- a/tests/upload/imagesize_test.php
+++ b/tests/upload/imagesize_test.php
@@ -16,7 +16,7 @@ require_once(__DIR__ . '/../../phpBB/includes/functions.php');
class phpbb_upload_imagesize_test extends \phpbb_test_case
{
- /** @var \phpbb\upload\imagesize */
+ /** @var \fastImageSize\fastImageSize */
protected $imagesize;
/** @var string Path to fixtures */
@@ -25,7 +25,7 @@ class phpbb_upload_imagesize_test extends \phpbb_test_case
public function setUp()
{
parent::setUp();
- $this->imagesize = new \phpbb\upload\imagesize();
+ $this->imagesize = new \fastImageSize\fastImageSize();
$this->path = __DIR__ . '/fixture/';
}
@@ -84,7 +84,7 @@ class phpbb_upload_imagesize_test extends \phpbb_test_case
*/
public function test_get_imagesize($file, $mime_type, $expected)
{
- $this->assertEquals($expected, $this->imagesize->get_imagesize($this->path . $file, $mime_type));
+ $this->assertEquals($expected, $this->imagesize->getImageSize($this->path . $file, $mime_type));
}
public function test_get_imagesize_remote()
@@ -94,6 +94,6 @@ class phpbb_upload_imagesize_test extends \phpbb_test_case
'height' => 80,
'type' => IMAGETYPE_JPEG,
),
- $this->imagesize->get_imagesize('https://secure.gravatar.com/avatar/55502f40dc8b7c769880b10874abc9d0.jpg'));
+ $this->imagesize->getImageSize('https://secure.gravatar.com/avatar/55502f40dc8b7c769880b10874abc9d0.jpg'));
}
}