Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Data Structures | Functions
Magento\Framework\Image\Adapter Namespace Reference

Data Structures

class  AbstractAdapter
 
interface  AdapterInterface
 
class  Config
 
interface  ConfigInterface
 
class  Gd2
 
class  ImageMagick
 
interface  UploadConfigInterface
 

Functions

 ini_get ($paramName)
 
 getimagesize ($file)
 
 memory_get_usage ($real)
 
 call_user_func ($callable, $param)
 

Detailed Description

Copyright © Magento, Inc. All rights reserved. See COPYING.txt for license details.

Function Documentation

◆ call_user_func()

Magento\Framework\Image\Adapter\call_user_func (   $callable,
  $param 
)
Parameters
$callable
$param
Returns
bool @SuppressWarnings(PHPMD.UnusedFormalParameter)

Definition at line 55 of file global_php_mock.php.

56 {
57  return false;
58 }

◆ getimagesize()

Magento\Framework\Image\Adapter\getimagesize (   $file)
Parameters
$file
Returns
mixed @SuppressWarnings(PHPMD.UnusedFormalParameter)

Definition at line 33 of file global_php_mock.php.

34 {
35  return Gd2Test::$imageData;
36 }

◆ ini_get()

Magento\Framework\Image\Adapter\ini_get (   $paramName)

Mocking global functions crucial for this adapter

Parameters
$paramName
Exceptions

Definition at line 19 of file global_php_mock.php.

20 {
21  if ('memory_limit' == $paramName) {
22  return Gd2Test::$memoryLimit;
23  }
24 
25  throw new \InvalidArgumentException('Unexpected parameter ' . $paramName);
26 }

◆ memory_get_usage()

Magento\Framework\Image\Adapter\memory_get_usage (   $real)
Parameters
$real
Returns
int

@SuppressWarnings(PHPMD.UnusedFormalParameter)

Definition at line 44 of file global_php_mock.php.

45 {
46  return 1000000;
47 }