I can think of at least three different 'environments' for my code:
installed, in a customer org,
unmanaged, in a cloned dev org,
managed, in the packaging org,
The first case can be covered by
The second case can be covered by
But I'm actually struggling to differentiate the second and third case! Any ideas?