| @@ 757-765 (lines=9) @@ | ||
| 754 | } |
|
| 755 | } |
|
| 756 | ||
| 757 | public static function propertyExists($classOrObject, $property, $message = '') |
|
| 758 | { |
|
| 759 | if (!property_exists($classOrObject, $property)) { |
|
| 760 | static::reportInvalidArgument(sprintf( |
|
| 761 | $message ?: 'Expected the property %s to exist.', |
|
| 762 | static::valueToString($property) |
|
| 763 | )); |
|
| 764 | } |
|
| 765 | } |
|
| 766 | ||
| 767 | public static function propertyNotExists($classOrObject, $property, $message = '') |
|
| 768 | { |
|
| @@ 767-775 (lines=9) @@ | ||
| 764 | } |
|
| 765 | } |
|
| 766 | ||
| 767 | public static function propertyNotExists($classOrObject, $property, $message = '') |
|
| 768 | { |
|
| 769 | if (property_exists($classOrObject, $property)) { |
|
| 770 | static::reportInvalidArgument(sprintf( |
|
| 771 | $message ?: 'Expected the property %s to not exist.', |
|
| 772 | static::valueToString($property) |
|
| 773 | )); |
|
| 774 | } |
|
| 775 | } |
|
| 776 | ||
| 777 | public static function methodExists($classOrObject, $method, $message = '') |
|
| 778 | { |
|