Beispiel #1
0
 public function render($file)
 {
     if ($file == 'php://stdout') {
         $file = null;
     }
     parent::render($file);
 }
Beispiel #2
0
 public function testISO_8859_15SpecialCharsGD()
 {
     $filename = $this->tempDir . __FUNCTION__ . '.png';
     $driver = new ezcGraphGdDriver();
     $driver->options->font->path = $this->basePath . 'font.ttf';
     $driver->options->width = 200;
     $driver->options->height = 100;
     $driver->drawPolygon(array(new ezcGraphCoordinate(10, 10), new ezcGraphCoordinate(160, 10), new ezcGraphCoordinate(160, 80), new ezcGraphCoordinate(10, 80)), ezcGraphColor::fromHex('#eeeeec'), true);
     $return = $driver->drawTextBox(iconv('UTF-8', 'ISO-8859-15', 'öäüÖÄÜß'), new ezcGraphCoordinate(10, 10), 150, 70, ezcGraph::LEFT);
     $driver->render($filename);
     $this->assertImageSimilar($filename, $this->basePath . 'compare/' . __CLASS__ . '_' . __FUNCTION__ . '.png', 'Image does not look as expected.', 2000);
 }