class PhpUnitBridgeIsolatedTest
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/Core/Test/PhpUnitBridgeIsolatedTest.php \Drupal\Tests\Core\Test\PhpUnitBridgeIsolatedTest
- 10 core/tests/Drupal/Tests/Core/Test/PhpUnitBridgeIsolatedTest.php \Drupal\Tests\Core\Test\PhpUnitBridgeIsolatedTest
- 9 core/tests/Drupal/Tests/Core/Test/PhpUnitBridgeIsolatedTest.php \Drupal\Tests\Core\Test\PhpUnitBridgeIsolatedTest
Test how unit tests interact with deprecation errors in process isolation.
@runTestsInSeparateProcesses @preserveGlobalState disabled
@group Test @group legacy
Hierarchy
- class \Drupal\Tests\UnitTestCase uses \Drupal\Tests\PhpunitCompatibilityTrait extends \PHPUnit\Framework\TestCase
- class \Drupal\Tests\Core\Test\PhpUnitBridgeIsolatedTest extends \Drupal\Tests\UnitTestCase
Expanded class hierarchy of PhpUnitBridgeIsolatedTest
File
-
core/
tests/ Drupal/ Tests/ Core/ Test/ PhpUnitBridgeIsolatedTest.php, line 17
Namespace
Drupal\Tests\Core\TestView source
class PhpUnitBridgeIsolatedTest extends UnitTestCase {
/**
* @expectedDeprecation Drupal\deprecation_test\Deprecation\FixtureDeprecatedClass is deprecated.
*/
public function testDeprecatedClass() {
$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.