public function testText() { $i = new Gd(__DIR__ . '/../tmp/test.jpg'); $i->text('Hello World', 36, 10, 100, __DIR__ . '/../tmp/times.ttf', 10, true); $this->assertEquals(640, $i->getWidth()); }