@@ 796-804 (lines=9) @@ | ||
793 | } |
|
794 | } |
|
795 | ||
796 | public static function propertyExists($classOrObject, $property, $message = '') |
|
797 | { |
|
798 | if (!property_exists($classOrObject, $property)) { |
|
799 | static::reportInvalidArgument(sprintf( |
|
800 | $message ?: 'Expected the property %s to exist.', |
|
801 | static::valueToString($property) |
|
802 | )); |
|
803 | } |
|
804 | } |
|
805 | ||
806 | public static function propertyNotExists($classOrObject, $property, $message = '') |
|
807 | { |
|
@@ 806-814 (lines=9) @@ | ||
803 | } |
|
804 | } |
|
805 | ||
806 | public static function propertyNotExists($classOrObject, $property, $message = '') |
|
807 | { |
|
808 | if (property_exists($classOrObject, $property)) { |
|
809 | static::reportInvalidArgument(sprintf( |
|
810 | $message ?: 'Expected the property %s to not exist.', |
|
811 | static::valueToString($property) |
|
812 | )); |
|
813 | } |
|
814 | } |
|
815 | ||
816 | public static function methodExists($classOrObject, $method, $message = '') |
|
817 | { |