Display the drop-down list

Test of class_parents()

Example #1 : test success
Example #2 : test success
Example #3 : test success
Example #4 : test success
Example #1
$input = 'application'
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'array' => [
      
'object' => 'object',
    ],
  ],
  
'php_version' => '7.1.30 Linux x86_64',
]
Example #2
$input = 'class_parents'
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'array' => [
      
'function_core' => 'function_core',
      
'action' => 'action',
      
'object' => 'object',
    ],
  ],
  
'php_version' => '7.1.30 Linux x86_64',
]
Example #3
$input = 'Exception'
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'array' => [
    ],
  ],
  
'php_version' => '7.1.30 Linux x86_64',
]
Example #4
$input = 'xyz'
$expected_output = $test_output
$test_output = [
  
'result' => [
    
'array' => false,
  ],
  
'errors' => [
    
=> [
      
'code' => 2,
      
'message' => 'class_parents(): Class xyz does not exist and could not be loaded',
    ],
  ],
  
'php_version' => '7.1.30 Linux x86_64',
]