3 namespace Drupal\Tests\Core\Test;
5 use Drupal\Tests\UnitTestCase;
6 use Drupal\deprecation_test\Deprecation\FixtureDeprecatedClass;
9 * Test how unit tests interact with deprecation errors in process isolation.
11 * @runTestsInSeparateProcesses
12 * @preserveGlobalState disabled
17 class PhpUnitBridgeIsolatedTest extends UnitTestCase {
20 * @expectedDeprecation Drupal\deprecation_test\Deprecation\FixtureDeprecatedClass is deprecated.
22 public function testDeprecatedClass() {
23 $deprecated = new FixtureDeprecatedClass();
24 $this->assertEquals('test', $deprecated->testFunction());