You are here

class FixtureDeprecatedClass in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/system/tests/modules/deprecation_test/src/Deprecation/FixtureDeprecatedClass.php \Drupal\deprecation_test\Deprecation\FixtureDeprecatedClass
  2. 9 core/modules/system/tests/modules/deprecation_test/src/Deprecation/FixtureDeprecatedClass.php \Drupal\deprecation_test\Deprecation\FixtureDeprecatedClass

Fixture class for use by DrupalStandardsListenerDeprecationTest.

This class is arbitrarily deprecated in order to test the deprecation error handling properties of DrupalStandardsListener.

Hierarchy

Expanded class hierarchy of FixtureDeprecatedClass

See also

\Drupal\Tests\Core\Listeners\DrupalStandardsListenerDeprecationTest

\Drupal\Tests\Listeners\DrupalStandardsListener::endTest()

4 files declare their use of FixtureDeprecatedClass
PhpUnitBridgeIsolatedTest.php in core/tests/Drupal/Tests/Core/Test/PhpUnitBridgeIsolatedTest.php
PhpUnitBridgeRequiresTest.php in core/tests/Drupal/Tests/Core/Test/PhpUnitBridgeRequiresTest.php
PhpUnitBridgeTest.php in core/tests/Drupal/Tests/Core/Test/PhpUnitBridgeTest.php
PhpUnitBridgeTest.php in core/tests/Drupal/KernelTests/Core/Test/PhpUnitBridgeTest.php
1 string reference to 'FixtureDeprecatedClass'
deprecation_test.services.yml in core/modules/system/tests/modules/deprecation_test/deprecation_test.services.yml
core/modules/system/tests/modules/deprecation_test/deprecation_test.services.yml
1 service uses FixtureDeprecatedClass
deprecation_test.service in core/modules/system/tests/modules/deprecation_test/deprecation_test.services.yml
Drupal\deprecation_test\Deprecation\FixtureDeprecatedClass

File

core/modules/system/tests/modules/deprecation_test/src/Deprecation/FixtureDeprecatedClass.php, line 16

Namespace

Drupal\deprecation_test\Deprecation
View source
class FixtureDeprecatedClass {

  /**
   * Returns a known value.
   *
   * @return string
   *   A known return value.
   */
  public function testFunction() {
    return 'test';
  }

}

Members