public function RectangleTest::testWrongHeight in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Component/Utility/RectangleTest.php \Drupal\Tests\Component\Utility\RectangleTest::testWrongHeight()
Tests wrong rectangle height.
@covers ::rotate
File
- core/
tests/ Drupal/ Tests/ Component/ Utility/ RectangleTest.php, line 29
Class
- RectangleTest
- @coversDefaultClass \Drupal\Component\Utility\Rectangle @group Image
Namespace
Drupal\Tests\Component\UtilityCode
public function testWrongHeight() {
$this
->expectException(\InvalidArgumentException::class);
$rect = new Rectangle(40, 0);
}