class FixtureDeprecatedClass

Same name in other branches
  1. 9 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()

3 files declare their use of FixtureDeprecatedClass
PhpUnitBridgeIsolatedTest.php in core/tests/Drupal/Tests/Core/Test/PhpUnitBridgeIsolatedTest.php
PhpUnitBridgeTest.php in core/tests/Drupal/KernelTests/Core/Test/PhpUnitBridgeTest.php
PhpUnitBridgeTest.php in core/tests/Drupal/Tests/Core/Test/PhpUnitBridgeTest.php

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.