There is plugin_basename()
call some levels inside which seems to use WP_PLUGIN_DIR
and WPMU_PLUGIN_DIR
constants, so my guess would be this function is only meant to be used for things inside plugin directories and not other places like theme.