1--TEST--
2Test property_exists() function : error conditions
3--FILE--
4<?php
5echo "*** Testing property_exists() : error conditions ***\n";
6
7echo "\n-- Testing property_exists() function with incorrect arguments --\n";
8$property_name = 'string_val';
9
10try {
11    var_dump( property_exists(10, $property_name) );
12} catch (\TypeError $e) {
13    echo $e->getMessage() . \PHP_EOL;
14}
15
16?>
17--EXPECT--
18*** Testing property_exists() : error conditions ***
19
20-- Testing property_exists() function with incorrect arguments --
21property_exists(): Argument #1 ($object_or_class) must be of type object|string, int given
22