prophesize(DataDefinitionInterface::class); $definition->isInternal() ->willReturn($internal) ->shouldBeCalled(); $definition = $definition->reveal(); $property = $this->prophesize(TypedDataInterface::class); $property->getDataDefinition() ->willReturn($definition) ->shouldBeCalled(); return $property->reveal(); } }