function PhpUnitBridgeRequiresTest::testWillNeverRun

Same name in other branches
  1. 10 core/tests/Drupal/Tests/Core/Test/PhpUnitBridgeRequiresTest.php \Drupal\Tests\Core\Test\PhpUnitBridgeRequiresTest::testWillNeverRun()
  2. 11.x core/tests/Drupal/Tests/Core/Test/PhpUnitBridgeRequiresTest.php \Drupal\Tests\Core\Test\PhpUnitBridgeRequiresTest::testWillNeverRun()

Tests the @requires annotation.

@dataProvider providerTestWillNeverRun

File

core/tests/Drupal/Tests/Core/Test/PhpUnitBridgeRequiresTest.php, line 28

Class

PhpUnitBridgeRequiresTest
Test how unit tests interact with deprecation errors.

Namespace

Drupal\Tests\Core\Test

Code

public function testWillNeverRun() : void {
    $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.