autoload_test_custom.info in Autoload 7
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
- 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