summaryrefslogtreecommitdiffstats
path: root/tests/chart_test.php
diff options
context:
space:
mode:
authorSebastian Bergmann <sb@sebastian-bergmann.de>2006-08-14 14:08:39 +0000
committerSebastian Bergmann <sb@sebastian-bergmann.de>2006-08-14 14:08:39 +0000
commit07af754620fd064b0d83345f2edcc00f3afa5a98 (patch)
tree9fab249bb8822bbc1dcacfdbf9c558288fdb3e51 /tests/chart_test.php
parent48155e33dd6901e3966d9b151d837bcbdc8e9968 (diff)
downloadzetacomponents-graph-07af754620fd064b0d83345f2edcc00f3afa5a98.zip
zetacomponents-graph-07af754620fd064b0d83345f2edcc00f3afa5a98.tar.gz
Update UnitTest component and unit tests to work with PHPUnit >= 3.0.0alpha12. This is also the required version of PHPUnit now.
Diffstat (limited to 'tests/chart_test.php')
-rw-r--r--tests/chart_test.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/chart_test.php b/tests/chart_test.php
index a906eeb..8999921 100644
--- a/tests/chart_test.php
+++ b/tests/chart_test.php
@@ -101,7 +101,7 @@ class ezcGraphChartTest extends ezcTestCase
$this->assertEquals(
ezcGraphColor::fromHex( 'FF0000' ),
- $this->getNonPublicProperty( $pieChart->background, 'background' )
+ $this->getAttribute( $pieChart->background, 'background' )
);
}
@@ -112,7 +112,7 @@ class ezcGraphChartTest extends ezcTestCase
$this->assertEquals(
ezcGraphColor::fromHex( 'FF0000' ),
- $this->getNonPublicProperty( $pieChart->background, 'border' )
+ $this->getAttribute( $pieChart->background, 'border' )
);
}
@@ -121,7 +121,7 @@ class ezcGraphChartTest extends ezcTestCase
$pieChart = new ezcGraphPieChart();
$pieChart->background->borderWidth = 3;
- $this->assertSame( 3, $this->getNonPublicProperty( $pieChart->background, 'borderWidth' ) );
+ $this->assertSame( 3, $this->getAttribute( $pieChart->background, 'borderWidth' ) );
}
public function testSetOptionsUnknown()
@@ -146,7 +146,7 @@ class ezcGraphChartTest extends ezcTestCase
$this->assertSame(
$renderer,
- $this->getNonPublicProperty( $pieChart, 'renderer' )
+ $this->getAttribute( $pieChart, 'renderer' )
);
}
@@ -172,7 +172,7 @@ class ezcGraphChartTest extends ezcTestCase
$this->assertSame(
$driver,
- $this->getNonPublicProperty( $pieChart, 'driver' )
+ $this->getAttribute( $pieChart, 'driver' )
);
}
OpenPOWER on IntegriCloud