function PhpUnitBridgeIsolatedTest::testDeprecatedClass

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Test/PhpUnitBridgeIsolatedTest.php \Drupal\Tests\Core\Test\PhpUnitBridgeIsolatedTest::testDeprecatedClass()
  2. 10 core/tests/Drupal/Tests/Core/Test/PhpUnitBridgeIsolatedTest.php \Drupal\Tests\Core\Test\PhpUnitBridgeIsolatedTest::testDeprecatedClass()
  3. 11.x core/tests/Drupal/Tests/Core/Test/PhpUnitBridgeIsolatedTest.php \Drupal\Tests\Core\Test\PhpUnitBridgeIsolatedTest::testDeprecatedClass()

@expectedDeprecation Drupal\deprecation_test\Deprecation\FixtureDeprecatedClass is deprecated.

File

core/tests/Drupal/Tests/Core/Test/PhpUnitBridgeIsolatedTest.php, line 22

Class

PhpUnitBridgeIsolatedTest
Test how unit tests interact with deprecation errors in process isolation.

Namespace

Drupal\Tests\Core\Test

Code

public function testDeprecatedClass() {
    $deprecated = new FixtureDeprecatedClass();
    $this->assertEquals('test', $deprecated->testFunction());
}

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