public function validatorThrowsExceptionIfValueIsNotAFlowEntity() { $this->classSchema->expects($this->once())->method('getModelType')->will($this->returnValue(ClassSchema::MODELTYPE_VALUEOBJECT)); $this->validator->validate(new \stdClass()); }