Mercurial > hg > isophonics-drupal-site
comparison core/modules/simpletest/tests/src/Traits/TestTrait.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4c8ae668cc8c |
---|---|
1 <?php | |
2 | |
3 namespace Drupal\Tests\simpletest\Traits; | |
4 | |
5 /** | |
6 * A nothing trait, but declared in the Drupal\Tests namespace. | |
7 * | |
8 * We use this trait to test autoloading of traits outside of the normal test | |
9 * suite namespaces. | |
10 * | |
11 * @see \Drupal\Tests\simpletest\Unit\TraitAccessTest | |
12 */ | |
13 trait TestTrait { | |
14 | |
15 /** | |
16 * Random string for a not very interesting trait. | |
17 * | |
18 * @var string | |
19 */ | |
20 protected $stuff = 'stuff'; | |
21 | |
22 /** | |
23 * Return a test string to a trait user. | |
24 * | |
25 * @return string | |
26 * Just a random sort of string. | |
27 */ | |
28 protected function getStuff() { | |
29 return $this->stuff; | |
30 } | |
31 | |
32 } |