diff options
author | David Rothstein <drothstein@gmail.com> | 2015-10-12 23:32:29 -0400 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2015-10-12 23:32:29 -0400 |
commit | 183a425c551969d4f56b04766fca82819a2a7b15 (patch) | |
tree | 08a4a9651b71c031133e2c7b508bc908793d62c9 /modules/simpletest/tests/bootstrap.test | |
parent | f12effc70c835e77bfdea394214df9247533d319 (diff) | |
download | brdo-183a425c551969d4f56b04766fca82819a2a7b15.tar.gz brdo-183a425c551969d4f56b04766fca82819a2a7b15.tar.bz2 |
Issue #2508055 by Dave Reid, David_Rothstein, hussainweb: Add support for autoloading Traits
Diffstat (limited to 'modules/simpletest/tests/bootstrap.test')
-rw-r--r-- | modules/simpletest/tests/bootstrap.test | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/simpletest/tests/bootstrap.test b/modules/simpletest/tests/bootstrap.test index ece1cd9e9..d46c6ec8f 100644 --- a/modules/simpletest/tests/bootstrap.test +++ b/modules/simpletest/tests/bootstrap.test @@ -313,6 +313,10 @@ class BootstrapAutoloadTestCase extends DrupalWebTestCase { $this->assertTrue(drupal_autoload_interface('drupalautoloadtestinterface'), 'drupal_autoload_interface() recognizes <em>DrupalAutoloadTestInterface</em> in lower case.'); // Test class autoloader. $this->assertTrue(drupal_autoload_class('drupalautoloadtestclass'), 'drupal_autoload_class() recognizes <em>DrupalAutoloadTestClass</em> in lower case.'); + // Test trait autoloader. + if (version_compare(PHP_VERSION, '5.4') >= 0) { + $this->assertTrue(drupal_autoload_trait('drupalautoloadtesttrait'), 'drupal_autoload_trait() recognizes <em>DrupalAutoloadTestTrait</em> in lower case.'); + } } } |