function PhpUnitBridgeTest::testWillNeverRun
Same name in other branches
- 10 core/tests/Drupal/Tests/Core/Test/PhpUnitBridgeTest.php \Drupal\Tests\Core\Test\PhpUnitBridgeTest::testWillNeverRun()
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());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.