function RectangleTest::testWrongHeight

Tests wrong rectangle height.

@legacy-covers ::rotate

File

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

Class

RectangleTest
Tests Drupal\Component\Utility\Rectangle.

Namespace

Drupal\Tests\Component\Utility

Code

public function testWrongHeight() : void {
  $this->expectException(\InvalidArgumentException::class);
  new Rectangle(40, 0);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.