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
- 8.9.x 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\Traits\PhpUnitWarnings, \Drupal\Tests\PhpUnitCompatibilityTrait, \Symfony\Bridge\PhpUnit\ExpectDeprecationTrait 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 {
public function testDeprecatedClass() {
$this->expectDeprecation('Drupal\\deprecation_test\\Deprecation\\FixtureDeprecatedClass is deprecated.');
$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.