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