public function PhpUnitBridgeTest::testWillNeverRun in Drupal 9
Tests the @requires annotation in conjunction with DrupalListener.
This test method will be skipped and should not cause the test suite to fail.
@requires extension will_hopefully_never_exist
See also
\Drupal\Tests\Listeners\DrupalListener
File
- core/
tests/ Drupal/ Tests/ Core/ Test/ PhpUnitBridgeTest.php, line 39
Class
- PhpUnitBridgeTest
- 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());
}