Display the drop-down list

Test of is_callable()

Example #1 : test success
Example #2 : test success
Example #3 : test success
Example #1
$input = [
  
=> 'someFunction',
  
=> false,
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'bool' => false,
  ],
  
'php_version' => '7.1.24 Linux x86_64',
]
Example #2
$input = [
  
=> 'is_callable',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'bool' => true,
  ],
  
'php_version' => '7.1.24 Linux x86_64',
]
Example #3
$input = [
  
=> [
    
=> 'Exception',
    
=> 'getMessage',
  ],
  
=> true,
  
=> '$callable_name',
]
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'callable_name' => 'Exception::getMessage',
    
'bool' => true,
  ],
  
'php_version' => '7.1.24 Linux x86_64',
]