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