forked from a64f7bb4-7358-4778-9fbe-3b882c34cc1d/v1
20 lines
490 B
PHP
20 lines
490 B
PHP
<?php
|
|
|
|
namespace Drupal\Tests;
|
|
|
|
/**
|
|
* @coversDefaultClass \Drupal\Tests\Traits\PhpUnitWarnings
|
|
* @group legacy
|
|
*/
|
|
class PhpUnitWarningsTest extends UnitTestCase {
|
|
|
|
/**
|
|
* Tests that selected PHPUnit warning is converted to deprecation.
|
|
*/
|
|
public function testAddWarning() {
|
|
$this->expectDeprecation('Test warning for \Drupal\Tests\PhpUnitWarningsTest::testAddWarning()');
|
|
$this->addWarning('Test warning for \Drupal\Tests\PhpUnitWarningsTest::testAddWarning()');
|
|
}
|
|
|
|
}
|