| @@ 849-857 (lines=9) @@ | ||
| 846 | } | |
| 847 | } | |
| 848 | ||
| 849 | public static function propertyExists($classOrObject, $property, $message = '') | |
| 850 |     { | |
| 851 |         if (!property_exists($classOrObject, $property)) { | |
| 852 | static::reportInvalidArgument(sprintf( | |
| 853 | $message ?: 'Expected the property %s to exist.', | |
| 854 | static::valueToString($property) | |
| 855 | )); | |
| 856 | } | |
| 857 | } | |
| 858 | ||
| 859 | public static function propertyNotExists($classOrObject, $property, $message = '') | |
| 860 |     { | |
| @@ 859-867 (lines=9) @@ | ||
| 856 | } | |
| 857 | } | |
| 858 | ||
| 859 | public static function propertyNotExists($classOrObject, $property, $message = '') | |
| 860 |     { | |
| 861 |         if (property_exists($classOrObject, $property)) { | |
| 862 | static::reportInvalidArgument(sprintf( | |
| 863 | $message ?: 'Expected the property %s to not exist.', | |
| 864 | static::valueToString($property) | |
| 865 | )); | |
| 866 | } | |
| 867 | } | |
| 868 | ||
| 869 | public static function methodExists($classOrObject, $method, $message = '') | |
| 870 |     { | |