function PhpUnitBridgeRequiresTest::testWillNeverRun
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/Test/PhpUnitBridgeRequiresTest.php \Drupal\Tests\Core\Test\PhpUnitBridgeRequiresTest::testWillNeverRun()
- 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 30
Class
- PhpUnitBridgeRequiresTest
- Test how unit tests interact with deprecation errors.
Namespace
Drupal\Tests\Core\TestCode
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.