예제 #1
0
 public function setUp()
 {
     parent::setUp();
     static $i = 0;
     $this->tempDir = $this->createTempDir(__CLASS__ . sprintf('_%03d_', ++$i)) . '/';
     $this->basePath = dirname(__FILE__) . '/data/';
 }
 protected function getRandomData($count, $min = 500, $max = 2000, $randomize = 23)
 {
     $data = parent::getRandomData($count, $min, $max, $randomize);
     foreach ($data as $k => $v) {
         $data[(string) ($k + 2000)] = $v;
         unset($data[$k]);
     }
     return $data;
 }
예제 #3
0
 public function setUp()
 {
     parent::setUp();
     date_default_timezone_set('Europe/Berlin');
     static $i = 0;
     $this->tempDir = $this->createTempDir(__CLASS__ . sprintf('_%03d_', ++$i)) . '/';
     $this->basePath = dirname(__FILE__) . '/data/';
     $this->chart = new ezcGraphLineChart();
     $this->chart->xAxis = new ezcGraphChartElementDateAxis();
 }
예제 #4
0
 public function setUp()
 {
     parent::setUp();
     static $i = 0;
     if (version_compare(phpversion(), '5.1.3', '<')) {
         $this->markTestSkipped("This test requires PHP 5.1.3 or later.");
     }
     $this->tempDir = $this->createTempDir(__CLASS__ . sprintf('_%03d_', ++$i)) . '/';
     $this->basePath = dirname(__FILE__) . '/data/';
 }
예제 #5
0
 public function setUp()
 {
     parent::setUp();
     static $i = 0;
     $this->tempDir = $this->createTempDir(__CLASS__ . sprintf('_%03d_', ++$i)) . '/';
     $this->basePath = dirname(__FILE__) . '/data/';
     $this->driver = new ezcGraphSvgDriver();
     $this->driver->options->width = 200;
     $this->driver->options->height = 100;
 }
예제 #6
0
 public function setUp()
 {
     parent::setUp();
     if (!ezcBaseFeatures::hasExtensionSupport('ming')) {
         $this->markTestSkipped('This test needs ext/ming support.');
     }
     static $i = 0;
     $this->tempDir = $this->createTempDir(__CLASS__ . sprintf('_%03d_', ++$i)) . '/';
     $this->basePath = dirname(__FILE__) . '/data/';
     $this->driver = new ezcGraphFlashDriver();
     $this->driver->options->width = 200;
     $this->driver->options->height = 100;
     $this->driver->options->font->path = $this->basePath . 'fdb_font.fdb';
 }
 public function setUp()
 {
     parent::setUp();
     static $i = 0;
     if (version_compare(phpversion(), '5.1.3', '<')) {
         $this->markTestSkipped("This test requires PHP 5.1.3 or later.");
     }
     $this->tempDir = $this->createTempDir(__CLASS__ . sprintf('_%03d_', ++$i)) . '/';
     $this->basePath = dirname(__FILE__) . '/data/';
     $this->renderer = new ezcGraphRenderer2d();
     $this->driver = $this->getMock('ezcGraphSvgDriver', array('drawPolygon', 'drawLine', 'drawTextBox', 'drawCircleSector', 'drawCircularArc', 'drawCircle', 'drawImage'));
     $this->renderer->setDriver($this->driver);
     $this->driver->options->width = 400;
     $this->driver->options->height = 200;
 }