public function testText() { $s = new Svg('graph.svg', '640px', '480px'); $s->setFillColor(new Rgb(255, 0, 0)); $s->text('Hello World', 36, 10, 100, 'Arial', 10, true); $this->assertEquals(640, $s->getWidth()); }