public function testFromWidth4() { $error = FALSE; try { $d = Dimension::fromWidth('100', 'abc'); } catch (DimensionError $e) { $this->assertEquals($e->getMessage(), 'Second parameter must be a number'); $error = TRUE; } $this->assertTrue($error); }
public function testFromWidth4() { $error = FALSE; try { $d = Dimension::fromWidth('100', 'abc'); } catch (DimensionError $e) { $this->assertEquals($e->getMessage(), 'Second parameter must be a number'); $error = TRUE; } $this->assertTrue($error); }