function 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[[api-linebreak]] @group Image
Namespace
Drupal\Tests\Component\UtilityCode
public function testWrongWidth() {
$this->expectException(\InvalidArgumentException::class);
$rect = new Rectangle(-40, 20);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.