More updates to stop using dev or alpha or beta versions.
[yaffs-website] / web / core / tests / Drupal / Tests / Core / Test / PhpUnitBridgeIsolatedTest.php
1 <?php
2
3 namespace Drupal\Tests\Core\Test;
4
5 use Drupal\Tests\UnitTestCase;
6 use Drupal\deprecation_test\Deprecation\FixtureDeprecatedClass;
7
8 /**
9  * Test how unit tests interact with deprecation errors in process isolation.
10  *
11  * @runTestsInSeparateProcesses
12  * @preserveGlobalState disabled
13  *
14  * @group Test
15  * @group legacy
16  */
17 class PhpUnitBridgeIsolatedTest extends UnitTestCase {
18
19   /**
20    * @expectedDeprecation Drupal\deprecation_test\Deprecation\FixtureDeprecatedClass is deprecated.
21    */
22   public function testDeprecatedClass() {
23     $deprecated = new FixtureDeprecatedClass();
24     $this->assertEquals('test', $deprecated->testFunction());
25   }
26
27 }