public function MeasurementTest::testInvalidNumber in Physical Fields 8
::covers __construct.
File
- tests/
src/ Unit/ MeasurementTest.php, line 35
Class
- MeasurementTest
- Tests the measurement base class.
Namespace
Drupal\Tests\physical\UnitCode
public function testInvalidNumber() {
$this
->expectException(\InvalidArgumentException::class);
$measurement = new Length('INVALID', 'm');
}