Accessing property1 on the interface Mockery\MockInterface suggest that you code against a concrete implementation. How about adding an instanceof check?
$entity of type Mockery\MockInterface is incompatible with the type Graze\UnicontrollerClien...\Entity\EntityInterface expected by parameter $entity of Graze\UnicontrollerClien...tityHydrator::hydrate().
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
Accessing property1 on the interface Graze\UnicontrollerClien...\Entity\EntityInterface suggest that you code against a concrete implementation. How about adding an instanceof check?