Exemplo n.º 1
0
 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);
 }