diff options
| author | Marc Alexander <admin@m-a-styles.de> | 2015-04-07 16:19:36 +0200 |
|---|---|---|
| committer | Marc Alexander <admin@m-a-styles.de> | 2015-04-24 13:33:14 +0200 |
| commit | 39d6180c6814996dde84cfcd8c0150bba37354ac (patch) | |
| tree | bf5bb1d69e0416a5d84ce6f76fdcee72605a80e4 /tests | |
| parent | 3fc7a352ff308ff4b5a038e807a6f803572242d5 (diff) | |
| download | forums-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')
| -rw-r--r-- | tests/avatar/manager_test.php | 2 | ||||
| -rw-r--r-- | tests/upload/imagesize_test.php | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/tests/avatar/manager_test.php b/tests/avatar/manager_test.php index 14c88c8da5..638ba0aaff 100644 --- a/tests/avatar/manager_test.php +++ b/tests/avatar/manager_test.php @@ -57,7 +57,7 @@ class phpbb_avatar_manager_test extends \phpbb_database_test_case new \phpbb\mimetype\content_guesser, ); $guesser = new \phpbb\mimetype\guesser($guessers); - $imagesize = new \phpbb\upload\imagesize(); + $imagesize = new \fastImageSize\fastImageSize(); // $this->avatar_foobar will be needed later on $this->avatar_foobar = $this->getMock('\phpbb\avatar\driver\foobar', array('get_name'), array($this->config, $imagesize, $phpbb_root_path, $phpEx, $path_helper, $cache)); 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')); } } |
