Mercurial > hg > isophonics-drupal-site
view core/modules/system/tests/src/Traits/TestTrait.php @ 19:fa3358dc1485 tip
Add ndrum files
author | Chris Cannam |
---|---|
date | Wed, 28 Aug 2019 13:14:47 +0100 |
parents | af1871eacc83 |
children |
line wrap: on
line source
<?php namespace Drupal\Tests\system\Traits; /** * A nothing trait, but declared in the Drupal\Tests namespace. * * We use this trait to test autoloading of traits outside of the normal test * suite namespaces. * * @see \Drupal\Tests\system\Unit\TraitAccessTest */ trait TestTrait { /** * Random string for a not very interesting trait. * * @var string */ protected $stuff = 'stuff'; /** * Return a test string to a trait user. * * @return string * Just a random sort of string. */ protected function getStuff() { return $this->stuff; } }