public function testResize() { $i = new Gd(__DIR__ . '/../tmp/test.jpg'); $i->resize(240); $this->assertEquals(240, $i->getWidth()); }