You are here

autoload_test_custom.info in Autoload 7

Same filename and directory in other branches
  1. 7.2 tests/autoload_test_custom/autoload_test_custom.info
name = Autolaod Custom Test
description = Testing autoloading of custom namespaces.
hidden = TRUE
core = 7.x

; Wrong declaration!
autoload = Autoload
; Try PSR-0 standard.
autoload[psr-0][] = Autoload
; Try PSR-4 standard.
autoload[psr-4][] = Autoload\Tests
; Try PSR-4 standard with single-leveled namespace defined.
autoload[psr-4-single-level-namespace][] = AutoloadTests\
; Try to fail autoloading in the same namespace but in another directory.
; @see https://www.drupal.org/node/2783081
autoload[tests][] = Autoload\Tests\Example
; Wrong declaration!
autoload[] = Autoload

dependencies[] = autoload

File

tests/autoload_test_custom/autoload_test_custom.info
View source
  1. name = Autolaod Custom Test
  2. description = Testing autoloading of custom namespaces.
  3. hidden = TRUE
  4. core = 7.x
  5. ; Wrong declaration!
  6. autoload = Autoload
  7. ; Try PSR-0 standard.
  8. autoload[psr-0][] = Autoload
  9. ; Try PSR-4 standard.
  10. autoload[psr-4][] = Autoload\Tests
  11. ; Try PSR-4 standard with single-leveled namespace defined.
  12. autoload[psr-4-single-level-namespace][] = AutoloadTests\
  13. ; Try to fail autoloading in the same namespace but in another directory.
  14. ; @see https://www.drupal.org/node/2783081
  15. autoload[tests][] = Autoload\Tests\Example
  16. ; Wrong declaration!
  17. autoload[] = Autoload
  18. dependencies[] = autoload