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.php30
1 files changed, 17 insertions, 13 deletions
diff --git a/tests/renderer_2d_test.php b/tests/renderer_2d_test.php
index 29c26f3..2f3f1a9 100644
--- a/tests/renderer_2d_test.php
+++ b/tests/renderer_2d_test.php
@@ -48,8 +48,10 @@ class ezcGraphRenderer2dTest extends ezcGraphTestCase
return new PHPUnit_Framework_TestSuite( "ezcGraphRenderer2dTest" );
}
- protected function setUp()
+ public function setUp()
{
+ parent::setUp();
+
static $i = 0;
if ( version_compare( phpversion(), '5.1.3', '<' ) )
{
@@ -61,22 +63,24 @@ 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;
}
- protected function tearDown()
+ public function tearDown()
{
$this->driver = null;
$this->renderer = null;
OpenPOWER on IntegriCloud