summaryrefslogtreecommitdiffstats
path: root/tests/renderer_2d_test.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/renderer_2d_test.php')
-rw-r--r--tests/renderer_2d_test.php24
1 files changed, 13 insertions, 11 deletions
diff --git a/tests/renderer_2d_test.php b/tests/renderer_2d_test.php
index e684cfd..2f3f1a9 100644
--- a/tests/renderer_2d_test.php
+++ b/tests/renderer_2d_test.php
@@ -63,19 +63,21 @@ class ezcGraphRenderer2dTest extends ezcGraphTestCase
$this->renderer = new ezcGraphRenderer2d();
- $this->driver = $this->getMock( 'ezcGraphSvgDriver', array(
- 'drawPolygon',
- 'drawLine',
- 'drawTextBox',
- 'drawCircleSector',
- 'drawCircularArc',
- 'drawCircle',
- 'drawImage',
- ) );
+ $this->driver = $this->getMockBuilder( 'ezcGraphSvgDriver' )
+ ->enableArgumentCloning()
+ ->setMethods( array(
+ 'drawPolygon',
+ 'drawLine',
+ 'drawTextBox',
+ 'drawCircleSector',
+ 'drawCircularArc',
+ 'drawCircle',
+ 'drawImage',
+ ) )->getMock();
$this->renderer->setDriver( $this->driver );
- $this->driver->options->width = 400;
- $this->driver->options->height = 200;
+ $this->driver->options->width= 400;
+ $this->driver->options->height= 200;
}
public function tearDown()
OpenPOWER on IntegriCloud