@@ 765-773 (lines=9) @@ | ||
762 | } |
|
763 | } |
|
764 | ||
765 | public static function propertyExists($classOrObject, $property, $message = '') |
|
766 | { |
|
767 | if (!property_exists($classOrObject, $property)) { |
|
768 | static::reportInvalidArgument(sprintf( |
|
769 | $message ?: 'Expected the property %s to exist.', |
|
770 | static::valueToString($property) |
|
771 | )); |
|
772 | } |
|
773 | } |
|
774 | ||
775 | public static function propertyNotExists($classOrObject, $property, $message = '') |
|
776 | { |
|
@@ 775-783 (lines=9) @@ | ||
772 | } |
|
773 | } |
|
774 | ||
775 | public static function propertyNotExists($classOrObject, $property, $message = '') |
|
776 | { |
|
777 | if (property_exists($classOrObject, $property)) { |
|
778 | static::reportInvalidArgument(sprintf( |
|
779 | $message ?: 'Expected the property %s to not exist.', |
|
780 | static::valueToString($property) |
|
781 | )); |
|
782 | } |
|
783 | } |
|
784 | ||
785 | public static function methodExists($classOrObject, $method, $message = '') |
|
786 | { |