/**
  * Tests the setWidth() method.
  */
 public function testSetWidth()
 {
     $config = new ResizeConfiguration();
     $this->assertEquals(0, $config->getWidth());
     $this->assertSame($config, $config->setWidth(100.0));
     $this->assertEquals(100, $config->getWidth());
     $this->assertInternalType('int', $config->getWidth());
     $this->setExpectedException('InvalidArgumentException');
     $config->setWidth(-1);
 }