diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2007-01-24 09:25:56 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2007-01-24 09:25:56 +0000 |
commit | 16bdb8776708f401d085c29222a88a2ae7667ced (patch) | |
tree | 9e76b1b75c8b85340e5a029887ec18d82ffb1472 /tests/chart_test.php | |
parent | 27eaaca1fb0e26115374260bcbc86615f8c4be3c (diff) | |
download | zetacomponents-graph-16bdb8776708f401d085c29222a88a2ae7667ced.zip zetacomponents-graph-16bdb8776708f401d085c29222a88a2ae7667ced.tar.gz |
- Move existing background tests to own test case
Diffstat (limited to 'tests/chart_test.php')
-rw-r--r-- | tests/chart_test.php | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/tests/chart_test.php b/tests/chart_test.php index 829663b..02b6cac 100644 --- a/tests/chart_test.php +++ b/tests/chart_test.php @@ -50,66 +50,6 @@ class ezcGraphChartTest extends ezcTestCase ); } - public function testSetOptionsInvalidBackgroundImage() - { - try - { - $pieChart = new ezcGraphPieChart(); - $pieChart->background->image = $this->basePath . $this->testFiles['invalid']; - } - catch ( ezcGraphInvalidImageFileException $e ) - { - return true; - } - - $this->fail( 'Expected ezcGraphInvalidImageFileException' ); - } - - public function testSetOptionsNonexistantBackgroundImage() - { - try - { - $pieChart = new ezcGraphPieChart(); - $pieChart->background->image = $this->basePath . $this->testFiles['nonexistant']; - } - catch ( ezcBaseFileNotFoundException $e ) - { - return true; - } - - $this->fail( 'Expected ezcBaseFileNotFoundException' ); - } - - public function testSetOptionsBackground() - { - $pieChart = new ezcGraphPieChart(); - $pieChart->background->color = '#FF0000'; - - $this->assertEquals( - ezcGraphColor::fromHex( 'FF0000' ), - $pieChart->background->color - ); - } - - public function testSetOptionsBorder() - { - $pieChart = new ezcGraphPieChart(); - $pieChart->background->border = '#FF0000'; - - $this->assertEquals( - ezcGraphColor::fromHex( 'FF0000' ), - $pieChart->background->border - ); - } - - public function testSetOptionsBorderWidth() - { - $pieChart = new ezcGraphPieChart(); - $pieChart->background->borderWidth = 3; - - $this->assertSame( 3, $pieChart->background->borderWidth ); - } - public function testSetOptionsUnknown() { try |