You are here

public function AreaTest::testInvalidUnit in Physical Fields 8

::covers __construct.

File

tests/src/Unit/AreaTest.php, line 35

Class

AreaTest
Tests the area class.

Namespace

Drupal\Tests\physical\Unit

Code

public function testInvalidUnit() {
  $this
    ->expectException(\InvalidArgumentException::class);
  $area = new Area('2', 'cm3');
}