Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
global_php_mock.php
Go to the documentation of this file.
1 <?php
7 
9 
19 function ini_get($paramName)
20 {
21  if ('memory_limit' == $paramName) {
22  return Gd2Test::$memoryLimit;
23  }
24 
25  throw new \InvalidArgumentException('Unexpected parameter ' . $paramName);
26 }
27 
33 function getimagesize($file)
34 {
35  return Gd2Test::$imageData;
36 }
37 
44 function memory_get_usage($real)
45 {
46  return 1000000;
47 }
48 
55 function call_user_func($callable, $param)
56 {
57  return false;
58 }