public function PhpUnitBridgeRequiresTest::testWillNeverRun in Drupal 10
Same name and namespace in other branches
- 9 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\TestCode
public function testWillNeverRun() : void {
$deprecated = new FixtureDeprecatedClass();
$this
->assertEquals('test', $deprecated
->testFunction());
}