public function PhpUnitBridgeRequiresTest::testWillNeverRun in Drupal 9
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());
}