显示下拉菜单

Test of imagearc() 本页面仅提供英文版本。

Example #1 : test success
Example #2 : test success
Example #3 : test success
Example #1
$input = [
  
'image_width' => 200,
  
'image_height' => 100,
  
'red' => 0,
  
'green' => 255,
  
'blue' => 0,
  
=> '$image',
  
=> 100,
  
=> 50,
  
=> 120,
  
=> 80,
  
=> 30,
  
=> 290,
  
=> '$color',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'image' => 'gd ressource',
    
'color' => 65280,
    
'bool' => true,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #2
$input = [
  
'image_width' => 200,
  
'image_height' => 100,
  
'red' => 0,
  
'green' => 255,
  
'blue' => 0,
  
=> '$xyz',
  
=> 100,
  
=> 50,
  
=> 120,
  
=> 80,
  
=> 30,
  
=> 290,
  
=> '$color',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'image' => 'gd ressource',
    
'color' => 65280,
    
'bool' => NULL,
  ],
  
'errors' => [
    
=> [
      
'code' => 2,
      
'message' => 'imagearc() expects parameter 1 to be resource, null given',
    ],
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]
Example #3
$input = [
  
'image_width' => 200,
  
'image_height' => 100,
  
'red' => 0,
  
'green' => 255,
  
'blue' => 0,
  
=> '$image',
  
=> 100,
  
=> 50,
  
=> 120,
  
=> 80,
  
=> 30,
  
=> 290,
  
=> '$xyz',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'image' => 'gd ressource',
    
'color' => 65280,
    
'bool' => true,
  ],
  
'php_version' => '7.1.33 Linux x86_64',
]