You are here

class FixtureDeprecatedClass in Drupal 8

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

3 files declare their use of FixtureDeprecatedClass
PhpUnitBridgeIsolatedTest.php in core/tests/Drupal/Tests/Core/Test/PhpUnitBridgeIsolatedTest.php
PhpUnitBridgeTest.php in core/tests/Drupal/Tests/Core/Test/PhpUnitBridgeTest.php
PhpUnitBridgeTest.php in core/tests/Drupal/KernelTests/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