class FixtureDeprecatedClass

Same name in other branches
  1. 8.9.x core/modules/system/tests/modules/deprecation_test/src/Deprecation/FixtureDeprecatedClass.php \Drupal\deprecation_test\Deprecation\FixtureDeprecatedClass
  2. 10 core/modules/system/tests/modules/deprecation_test/src/Deprecation/FixtureDeprecatedClass.php \Drupal\deprecation_test\Deprecation\FixtureDeprecatedClass
  3. 11.x 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/KernelTests/Core/Test/PhpUnitBridgeTest.php
PhpUnitBridgeTest.php in core/tests/Drupal/Tests/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

Title Sort descending Modifiers Object type Summary
FixtureDeprecatedClass::testFunction public function Returns a known value.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.