You are here

public function RectangleTest::testWrongWidth in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Component/Utility/RectangleTest.php \Drupal\Tests\Component\Utility\RectangleTest::testWrongWidth()
  2. 10 core/tests/Drupal/Tests/Component/Utility/RectangleTest.php \Drupal\Tests\Component\Utility\RectangleTest::testWrongWidth()

Tests wrong rectangle width.

@covers ::rotate

File

core/tests/Drupal/Tests/Component/Utility/RectangleTest.php, line 19

Class

RectangleTest
@coversDefaultClass \Drupal\Component\Utility\Rectangle @group Image

Namespace

Drupal\Tests\Component\Utility

Code

public function testWrongWidth() {
  $this
    ->expectException(\InvalidArgumentException::class);
  $rect = new Rectangle(-40, 20);
}