diff options
author | Kore Nordmann <github@kore-nordmann.de> | 2006-11-30 08:44:35 +0000 |
---|---|---|
committer | Kore Nordmann <github@kore-nordmann.de> | 2006-11-30 08:44:35 +0000 |
commit | 900e04fff3c7ef75917bcb6b039f71f817774702 (patch) | |
tree | e53ff028184a59fbcb519bf6a9b002b1305de1c0 | |
parent | db9085af71795942fac7ce7e7675b0891ed354ba (diff) | |
download | zetacomponents-graph-900e04fff3c7ef75917bcb6b039f71f817774702.zip zetacomponents-graph-900e04fff3c7ef75917bcb6b039f71f817774702.tar.gz |
- Resolved: Issue #9543 (Rename Ming driver to Flash in the Graph component)
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | src/driver/flash.php (renamed from src/driver/ming.php) | 10 | ||||
-rw-r--r-- | src/exceptions/flash_bitmap_boundings.php (renamed from src/exceptions/ming_bitmap_boundings.php) | 8 | ||||
-rw-r--r-- | src/exceptions/flash_bitmap_type.php (renamed from src/exceptions/ming_bitmap_type.php) | 8 | ||||
-rw-r--r-- | src/graph_autoload.php | 8 | ||||
-rw-r--r-- | src/options/flash_driver.php (renamed from src/options/ming_driver.php) | 4 | ||||
-rw-r--r-- | tests/data/compare/ezcGraphFlashDriverTest_testDrawCircleFilled.swf (renamed from tests/data/compare/ezcGraphMingDriverTest_testDrawCircleFilled.swf) | bin | 442 -> 442 bytes | |||
-rw-r--r-- | tests/data/compare/ezcGraphFlashDriverTest_testDrawCircleLinearFill.swf (renamed from tests/data/compare/ezcGraphMingDriverTest_testDrawCircleLinearFill.swf) | bin | 749 -> 749 bytes | |||
-rw-r--r-- | tests/data/compare/ezcGraphFlashDriverTest_testDrawCircleLinearFilledLine.swf (renamed from tests/data/compare/ezcGraphMingDriverTest_testDrawCircleLinearFilledLine.swf) | bin | 732 -> 732 bytes | |||
-rw-r--r-- | tests/data/compare/ezcGraphFlashDriverTest_testDrawCircleNonFilled.swf (renamed from tests/data/compare/ezcGraphMingDriverTest_testDrawCircleNonFilled.swf) | bin | 443 -> 443 bytes | |||
-rw-r--r-- | tests/data/compare/ezcGraphFlashDriverTest_testDrawCircleRadialFill.swf (renamed from tests/data/compare/ezcGraphMingDriverTest_testDrawCircleRadialFill.swf) | bin | 457 -> 457 bytes | |||
-rw-r--r-- | tests/data/compare/ezcGraphFlashDriverTest_testDrawCircleRadialFilledLine.swf (renamed from tests/data/compare/ezcGraphMingDriverTest_testDrawCircleRadialFilledLine.swf) | bin | 443 -> 443 bytes | |||
-rw-r--r-- | tests/data/compare/ezcGraphFlashDriverTest_testDrawCircleSectorAcute.swf (renamed from tests/data/compare/ezcGraphMingDriverTest_testDrawCircleSectorAcute.swf) | bin | 101 -> 101 bytes | |||
-rw-r--r-- | tests/data/compare/ezcGraphFlashDriverTest_testDrawCircleSectorAcuteNonFilled.swf (renamed from tests/data/compare/ezcGraphMingDriverTest_testDrawCircleSectorAcuteNonFilled.swf) | bin | 123 -> 123 bytes | |||
-rw-r--r-- | tests/data/compare/ezcGraphFlashDriverTest_testDrawCircleSectorAcuteReverse.swf (renamed from tests/data/compare/ezcGraphMingDriverTest_testDrawCircleSectorAcuteReverse.swf) | bin | 101 -> 101 bytes | |||
-rw-r--r-- | tests/data/compare/ezcGraphFlashDriverTest_testDrawCircleSectorObtuse.swf (renamed from tests/data/compare/ezcGraphMingDriverTest_testDrawCircleSectorObtuse.swf) | bin | 343 -> 343 bytes | |||
-rw-r--r-- | tests/data/compare/ezcGraphFlashDriverTest_testDrawCircularArcAcute.swf (renamed from tests/data/compare/ezcGraphMingDriverTest_testDrawCircularArcAcute.swf) | bin | 367 -> 367 bytes | |||
-rw-r--r-- | tests/data/compare/ezcGraphFlashDriverTest_testDrawCircularArcAcuteBorder.swf (renamed from tests/data/compare/ezcGraphMingDriverTest_testDrawCircularArcAcuteBorder.swf) | bin | 189 -> 189 bytes | |||
-rw-r--r-- | tests/data/compare/ezcGraphFlashDriverTest_testDrawCircularArcAcuteReverse.swf (renamed from tests/data/compare/ezcGraphMingDriverTest_testDrawCircularArcAcuteReverse.swf) | bin | 367 -> 367 bytes | |||
-rw-r--r-- | tests/data/compare/ezcGraphFlashDriverTest_testDrawCircularArcObtuse.swf (renamed from tests/data/compare/ezcGraphMingDriverTest_testDrawCircularArcObtuse.swf) | bin | 1572 -> 1572 bytes | |||
-rw-r--r-- | tests/data/compare/ezcGraphFlashDriverTest_testDrawLine.swf (renamed from tests/data/compare/ezcGraphMingDriverTest_testDrawLine.swf) | bin | 80 -> 80 bytes | |||
-rw-r--r-- | tests/data/compare/ezcGraphFlashDriverTest_testDrawMultipleBigCircleSectors.swf (renamed from tests/data/compare/ezcGraphMingDriverTest_testDrawMultipleBigCircleSectors.swf) | bin | 543 -> 543 bytes | |||
-rw-r--r-- | tests/data/compare/ezcGraphFlashDriverTest_testDrawMultipleCircleSectors.swf (renamed from tests/data/compare/ezcGraphMingDriverTest_testDrawMultipleCircleSectors.swf) | bin | 732 -> 732 bytes | |||
-rw-r--r-- | tests/data/compare/ezcGraphFlashDriverTest_testDrawMultipleCircularArcs.swf (renamed from tests/data/compare/ezcGraphMingDriverTest_testDrawMultipleCircularArcs.swf) | bin | 1179 -> 1179 bytes | |||
-rw-r--r-- | tests/data/compare/ezcGraphFlashDriverTest_testDrawMultipleFilledTransparentPolygons.swf (renamed from tests/data/compare/ezcGraphMingDriverTest_testDrawMultipleFilledTransparentPolygons.swf) | bin | 213 -> 213 bytes | |||
-rw-r--r-- | tests/data/compare/ezcGraphFlashDriverTest_testDrawPolygonFivePoints.swf (renamed from tests/data/compare/ezcGraphMingDriverTest_testDrawPolygonFivePoints.swf) | bin | 96 -> 96 bytes | |||
-rw-r--r-- | tests/data/compare/ezcGraphFlashDriverTest_testDrawPolygonThreePointsFilled.swf (renamed from tests/data/compare/ezcGraphMingDriverTest_testDrawPolygonThreePointsFilled.swf) | bin | 90 -> 90 bytes | |||
-rw-r--r-- | tests/data/compare/ezcGraphFlashDriverTest_testDrawPolygonThreePointsNotFilled.swf (renamed from tests/data/compare/ezcGraphMingDriverTest_testDrawPolygonThreePointsNotFilled.swf) | bin | 91 -> 91 bytes | |||
-rw-r--r-- | tests/data/compare/ezcGraphFlashDriverTest_testDrawStringWithSpecialChars.swf (renamed from tests/data/compare/ezcGraphMingDriverTest_testDrawStringWithSpecialChars.swf) | bin | 2593 -> 2593 bytes | |||
-rw-r--r-- | tests/data/compare/ezcGraphFlashDriverTest_testDrawTextBoxLongSpacedString.swf (renamed from tests/data/compare/ezcGraphMingDriverTest_testDrawTextBoxLongSpacedString.swf) | bin | 4194 -> 4194 bytes | |||
-rw-r--r-- | tests/data/compare/ezcGraphFlashDriverTest_testDrawTextBoxLongSpacedStringCenter.swf (renamed from tests/data/compare/ezcGraphMingDriverTest_testDrawTextBoxLongSpacedStringCenter.swf) | bin | 4195 -> 4195 bytes | |||
-rw-r--r-- | tests/data/compare/ezcGraphFlashDriverTest_testDrawTextBoxLongSpacedStringCenterBottom.swf (renamed from tests/data/compare/ezcGraphMingDriverTest_testDrawTextBoxLongSpacedStringCenterBottom.swf) | bin | 4195 -> 4195 bytes | |||
-rw-r--r-- | tests/data/compare/ezcGraphFlashDriverTest_testDrawTextBoxLongSpacedStringRight.swf (renamed from tests/data/compare/ezcGraphMingDriverTest_testDrawTextBoxLongSpacedStringRight.swf) | bin | 4195 -> 4195 bytes | |||
-rw-r--r-- | tests/data/compare/ezcGraphFlashDriverTest_testDrawTextBoxLongSpacedStringRightMiddle.swf (renamed from tests/data/compare/ezcGraphMingDriverTest_testDrawTextBoxLongSpacedStringRightMiddle.swf) | bin | 4195 -> 4195 bytes | |||
-rw-r--r-- | tests/data/compare/ezcGraphFlashDriverTest_testDrawTextBoxLongString.swf (renamed from tests/data/compare/ezcGraphMingDriverTest_testDrawTextBoxLongString.swf) | bin | 1456 -> 1456 bytes | |||
-rw-r--r-- | tests/data/compare/ezcGraphFlashDriverTest_testDrawTextBoxManualBreak.swf (renamed from tests/data/compare/ezcGraphMingDriverTest_testDrawTextBoxManualBreak.swf) | bin | 1010 -> 1010 bytes | |||
-rw-r--r-- | tests/data/compare/ezcGraphFlashDriverTest_testDrawTextBoxShortString.swf (renamed from tests/data/compare/ezcGraphMingDriverTest_testDrawTextBoxShortString.swf) | bin | 640 -> 640 bytes | |||
-rw-r--r-- | tests/data/compare/ezcGraphFlashDriverTest_testDrawTextBoxStringCenter.swf (renamed from tests/data/compare/ezcGraphMingDriverTest_testDrawTextBoxStringCenter.swf) | bin | 1457 -> 1457 bytes | |||
-rw-r--r-- | tests/data/compare/ezcGraphFlashDriverTest_testDrawTextBoxStringCenterMiddle.swf (renamed from tests/data/compare/ezcGraphMingDriverTest_testDrawTextBoxStringCenterMiddle.swf) | bin | 1457 -> 1457 bytes | |||
-rw-r--r-- | tests/data/compare/ezcGraphFlashDriverTest_testDrawTextBoxStringRight.swf (renamed from tests/data/compare/ezcGraphMingDriverTest_testDrawTextBoxStringRight.swf) | bin | 1457 -> 1457 bytes | |||
-rw-r--r-- | tests/data/compare/ezcGraphFlashDriverTest_testDrawTextBoxStringRightBottom.swf (renamed from tests/data/compare/ezcGraphMingDriverTest_testDrawTextBoxStringRightBottom.swf) | bin | 1457 -> 1457 bytes | |||
-rw-r--r-- | tests/data/compare/ezcGraphFlashDriverTest_testDrawTextBoxStringSampleRight.swf (renamed from tests/data/compare/ezcGraphMingDriverTest_testDrawTextBoxStringSampleRight.swf) | bin | 896 -> 896 bytes | |||
-rw-r--r-- | tests/data/compare/ezcGraphFlashDriverTest_testDrawTextWithBackground.swf (renamed from tests/data/compare/ezcGraphMingDriverTest_testDrawTextWithBackground.swf) | bin | 2320 -> 2320 bytes | |||
-rw-r--r-- | tests/data/compare/ezcGraphFlashDriverTest_testDrawTextWithBorder.swf (renamed from tests/data/compare/ezcGraphMingDriverTest_testDrawTextWithBorder.swf) | bin | 2321 -> 2321 bytes | |||
-rw-r--r-- | tests/data/compare/ezcGraphFlashDriverTest_testDrawTextWithCustomTextShadow.swf (renamed from tests/data/compare/ezcGraphMingDriverTest_testDrawTextWithCustomTextShadow.swf) | bin | 4552 -> 4552 bytes | |||
-rw-r--r-- | tests/data/compare/ezcGraphFlashDriverTest_testDrawTextWithMinimizedBorderAndBackgroundBottomRight.swf (renamed from tests/data/compare/ezcGraphMingDriverTest_testDrawTextWithMinimizedBorderAndBackgroundBottomRight.swf) | bin | 2381 -> 2381 bytes | |||
-rw-r--r-- | tests/data/compare/ezcGraphFlashDriverTest_testDrawTextWithMinimizedBorderAndBackgroundMiddleCenter.swf (renamed from tests/data/compare/ezcGraphMingDriverTest_testDrawTextWithMinimizedBorderAndBackgroundMiddleCenter.swf) | bin | 2381 -> 2381 bytes | |||
-rw-r--r-- | tests/data/compare/ezcGraphFlashDriverTest_testDrawTextWithMinimizedBorderAndBackgroundTopLeft.swf (renamed from tests/data/compare/ezcGraphMingDriverTest_testDrawTextWithMinimizedBorderAndBackgroundTopLeft.swf) | bin | 2381 -> 2381 bytes | |||
-rw-r--r-- | tests/data/compare/ezcGraphFlashDriverTest_testDrawTextWithTextShadow.swf (renamed from tests/data/compare/ezcGraphMingDriverTest_testDrawTextWithTextShadow.swf) | bin | 4552 -> 4552 bytes | |||
-rw-r--r-- | tests/data/compare/ezcGraphFlashDriverTest_testRenderLabeledFlashPieChart.swf (renamed from tests/data/compare/ezcGraphMingDriverTest_testRenderLabeledFlashPieChart.swf) | bin | 48982 -> 48982 bytes | |||
-rw-r--r-- | tests/driver_flash_test.php (renamed from tests/driver_ming_test.php) | 38 | ||||
-rw-r--r-- | tests/suite.php | 4 |
52 files changed, 42 insertions, 40 deletions
@@ -1,6 +1,8 @@ 1.0 - [RELEASEDATE] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +- Renamed ezcGraphMingDriver to ezcGraphFlashDriver + - Fixed issue #9583: Data typecasting should only be done in axis - Fixed issue #9586: No data rendered with string keys on date axis. diff --git a/src/driver/ming.php b/src/driver/flash.php index 669fff7..51f55fb 100644 --- a/src/driver/ming.php +++ b/src/driver/flash.php @@ -1,6 +1,6 @@ <?php /** - * File containing the ezcGraphMingDriver class + * File containing the ezcGraphFlashDriver class * * @package Graph * @version //autogentag// @@ -13,7 +13,7 @@ * @package Graph */ -class ezcGraphMingDriver extends ezcGraphDriver +class ezcGraphFlashDriver extends ezcGraphDriver { /** * Flash movie @@ -45,7 +45,7 @@ class ezcGraphMingDriver extends ezcGraphDriver */ public function __construct( array $options = array() ) { - $this->options = new ezcGraphMingDriverOptions( $options ); + $this->options = new ezcGraphFlashDriverOptions( $options ); } /** @@ -792,12 +792,12 @@ class ezcGraphMingDriver extends ezcGraphDriver $imageData = getimagesize( $file ); if ( $imageData[0] !== $width || $imageData[1] !== $height ) { - throw new ezcGraphMingBitmapBoundingsException( $imageData[0], $imageData[1], $width, $height ); + throw new ezcGraphFlashBitmapBoundingsException( $imageData[0], $imageData[1], $width, $height ); } if ( $imageData[2] !== 2 ) { - throw new ezcGraphMingBitmapTypeException( $imageData[2] ); + throw new ezcGraphFlashBitmapTypeException( $imageData[2] ); } $image = new SWFBitmap( file_get_contents( 'http://kore.phpugdo.de/jpg.jpeg' ) ); diff --git a/src/exceptions/ming_bitmap_boundings.php b/src/exceptions/flash_bitmap_boundings.php index 6cc3414..e649aed 100644 --- a/src/exceptions/ming_bitmap_boundings.php +++ b/src/exceptions/flash_bitmap_boundings.php @@ -1,6 +1,6 @@ <?php /** - * File containing the ezcGraphMingBitmapBoundingsException class + * File containing the ezcGraphFlashBitmapBoundingsException class * * @package Graph * @version //autogen// @@ -8,17 +8,17 @@ * @license http://ez.no/licenses/new_bsd New BSD License */ /** - * Ming does not support bitmap scaling, so that this exceptions is thrown + * Flash does not support bitmap scaling, so that this exceptions is thrown * when an image does not have the requested size. * * @package Graph * @version //autogen// */ -class ezcGraphMingBitmapBoundingsException extends ezcGraphException +class ezcGraphFlashBitmapBoundingsException extends ezcGraphException { public function __construct( $imageWidth, $imageHeight, $reqWidth, $reqHeight ) { - parent::__construct( "Ming does not support bitmap scaling, so that it is up to you to scale the image '$imageWidth' * '$imageHeight' to '$reqWidth' * '$reqHeight'." ); + parent::__construct( "Flash does not support bitmap scaling, so that it is up to you to scale the image '$imageWidth' * '$imageHeight' to '$reqWidth' * '$reqHeight'." ); } } diff --git a/src/exceptions/ming_bitmap_type.php b/src/exceptions/flash_bitmap_type.php index 825a907..d03e9a0 100644 --- a/src/exceptions/ming_bitmap_type.php +++ b/src/exceptions/flash_bitmap_type.php @@ -1,6 +1,6 @@ <?php /** - * File containing the ezcGraphMingBitmapTypeException class + * File containing the ezcGraphFlashBitmapTypeException class * * @package Graph * @version //autogen// @@ -8,17 +8,17 @@ * @license http://ez.no/licenses/new_bsd New BSD License */ /** - * Ming can only read non interlaced bitmaps. This exception is thrown for + * Flash can only read non interlaced bitmaps. This exception is thrown for * all other image types. * * @package Graph * @version //autogen// */ -class ezcGraphMingBitmapTypeException extends ezcGraphException +class ezcGraphFlashBitmapTypeException extends ezcGraphException { public function __construct( $type ) { - parent::__construct( "Ming can only read non interlaced JPEGs." ); + parent::__construct( "Flash can only read non interlaced JPEGs." ); } } diff --git a/src/graph_autoload.php b/src/graph_autoload.php index 11c7ec2..5ba3f02 100644 --- a/src/graph_autoload.php +++ b/src/graph_autoload.php @@ -55,10 +55,10 @@ return array( 'ezcGraphSvgDriverOptions' => 'Graph/options/svg_driver.php', 'ezcGraphSvgDriverInvalidIdException' => 'Graph/exceptions/invalid_id.php', 'ezcGraphVerboseDriver' => 'Graph/driver/verbose.php', - 'ezcGraphMingDriver' => 'Graph/driver/ming.php', - 'ezcGraphMingDriverOptions' => 'Graph/options/ming_driver.php', - 'ezcGraphMingBitmapTypeException' => 'Graph/exceptions/ming_bitmap_type.php', - 'ezcGraphMingBitmapBoundingsException' => 'Graph/exceptions/ming_bitmap_boundings.php', + 'ezcGraphFlashDriver' => 'Graph/driver/flash.php', + 'ezcGraphFlashDriverOptions' => 'Graph/options/flash_driver.php', + 'ezcGraphFlashBitmapTypeException' => 'Graph/exceptions/flash_bitmap_type.php', + 'ezcGraphFlashBitmapBoundingsException' => 'Graph/exceptions/flash_bitmap_boundings.php', 'ezcGraphPalette' => 'Graph/interfaces/palette.php', 'ezcGraphPaletteTango' => 'Graph/palette/tango.php', diff --git a/src/options/ming_driver.php b/src/options/flash_driver.php index 78a9ade..d1294d2 100644 --- a/src/options/ming_driver.php +++ b/src/options/flash_driver.php @@ -1,6 +1,6 @@ <?php /** - * File containing the ezcGraphMingDriverOption class + * File containing the ezcGraphFlashDriverOption class * * @package Graph * @version //autogentag// @@ -19,7 +19,7 @@ * * @package Graph */ -class ezcGraphMingDriverOptions extends ezcGraphDriverOptions +class ezcGraphFlashDriverOptions extends ezcGraphDriverOptions { /** * Constructor diff --git a/tests/data/compare/ezcGraphMingDriverTest_testDrawCircleFilled.swf b/tests/data/compare/ezcGraphFlashDriverTest_testDrawCircleFilled.swf Binary files differindex 28dfe06..28dfe06 100644 --- a/tests/data/compare/ezcGraphMingDriverTest_testDrawCircleFilled.swf +++ b/tests/data/compare/ezcGraphFlashDriverTest_testDrawCircleFilled.swf diff --git a/tests/data/compare/ezcGraphMingDriverTest_testDrawCircleLinearFill.swf b/tests/data/compare/ezcGraphFlashDriverTest_testDrawCircleLinearFill.swf Binary files differindex 5f62700..5f62700 100644 --- a/tests/data/compare/ezcGraphMingDriverTest_testDrawCircleLinearFill.swf +++ b/tests/data/compare/ezcGraphFlashDriverTest_testDrawCircleLinearFill.swf diff --git a/tests/data/compare/ezcGraphMingDriverTest_testDrawCircleLinearFilledLine.swf b/tests/data/compare/ezcGraphFlashDriverTest_testDrawCircleLinearFilledLine.swf Binary files differindex b0e7b33..b0e7b33 100644 --- a/tests/data/compare/ezcGraphMingDriverTest_testDrawCircleLinearFilledLine.swf +++ b/tests/data/compare/ezcGraphFlashDriverTest_testDrawCircleLinearFilledLine.swf diff --git a/tests/data/compare/ezcGraphMingDriverTest_testDrawCircleNonFilled.swf b/tests/data/compare/ezcGraphFlashDriverTest_testDrawCircleNonFilled.swf Binary files differindex 80b5853..80b5853 100644 --- a/tests/data/compare/ezcGraphMingDriverTest_testDrawCircleNonFilled.swf +++ b/tests/data/compare/ezcGraphFlashDriverTest_testDrawCircleNonFilled.swf diff --git a/tests/data/compare/ezcGraphMingDriverTest_testDrawCircleRadialFill.swf b/tests/data/compare/ezcGraphFlashDriverTest_testDrawCircleRadialFill.swf Binary files differindex 4588273..4588273 100644 --- a/tests/data/compare/ezcGraphMingDriverTest_testDrawCircleRadialFill.swf +++ b/tests/data/compare/ezcGraphFlashDriverTest_testDrawCircleRadialFill.swf diff --git a/tests/data/compare/ezcGraphMingDriverTest_testDrawCircleRadialFilledLine.swf b/tests/data/compare/ezcGraphFlashDriverTest_testDrawCircleRadialFilledLine.swf Binary files differindex b4c6df3..b4c6df3 100644 --- a/tests/data/compare/ezcGraphMingDriverTest_testDrawCircleRadialFilledLine.swf +++ b/tests/data/compare/ezcGraphFlashDriverTest_testDrawCircleRadialFilledLine.swf diff --git a/tests/data/compare/ezcGraphMingDriverTest_testDrawCircleSectorAcute.swf b/tests/data/compare/ezcGraphFlashDriverTest_testDrawCircleSectorAcute.swf Binary files differindex eb3639b..eb3639b 100644 --- a/tests/data/compare/ezcGraphMingDriverTest_testDrawCircleSectorAcute.swf +++ b/tests/data/compare/ezcGraphFlashDriverTest_testDrawCircleSectorAcute.swf diff --git a/tests/data/compare/ezcGraphMingDriverTest_testDrawCircleSectorAcuteNonFilled.swf b/tests/data/compare/ezcGraphFlashDriverTest_testDrawCircleSectorAcuteNonFilled.swf Binary files differindex 9cfca93..9cfca93 100644 --- a/tests/data/compare/ezcGraphMingDriverTest_testDrawCircleSectorAcuteNonFilled.swf +++ b/tests/data/compare/ezcGraphFlashDriverTest_testDrawCircleSectorAcuteNonFilled.swf diff --git a/tests/data/compare/ezcGraphMingDriverTest_testDrawCircleSectorAcuteReverse.swf b/tests/data/compare/ezcGraphFlashDriverTest_testDrawCircleSectorAcuteReverse.swf Binary files differindex 4c3d8dd..4c3d8dd 100644 --- a/tests/data/compare/ezcGraphMingDriverTest_testDrawCircleSectorAcuteReverse.swf +++ b/tests/data/compare/ezcGraphFlashDriverTest_testDrawCircleSectorAcuteReverse.swf diff --git a/tests/data/compare/ezcGraphMingDriverTest_testDrawCircleSectorObtuse.swf b/tests/data/compare/ezcGraphFlashDriverTest_testDrawCircleSectorObtuse.swf Binary files differindex 7bfb90a..7bfb90a 100644 --- a/tests/data/compare/ezcGraphMingDriverTest_testDrawCircleSectorObtuse.swf +++ b/tests/data/compare/ezcGraphFlashDriverTest_testDrawCircleSectorObtuse.swf diff --git a/tests/data/compare/ezcGraphMingDriverTest_testDrawCircularArcAcute.swf b/tests/data/compare/ezcGraphFlashDriverTest_testDrawCircularArcAcute.swf Binary files differindex b3ba3c7..b3ba3c7 100644 --- a/tests/data/compare/ezcGraphMingDriverTest_testDrawCircularArcAcute.swf +++ b/tests/data/compare/ezcGraphFlashDriverTest_testDrawCircularArcAcute.swf diff --git a/tests/data/compare/ezcGraphMingDriverTest_testDrawCircularArcAcuteBorder.swf b/tests/data/compare/ezcGraphFlashDriverTest_testDrawCircularArcAcuteBorder.swf Binary files differindex 5fba27c..5fba27c 100644 --- a/tests/data/compare/ezcGraphMingDriverTest_testDrawCircularArcAcuteBorder.swf +++ b/tests/data/compare/ezcGraphFlashDriverTest_testDrawCircularArcAcuteBorder.swf diff --git a/tests/data/compare/ezcGraphMingDriverTest_testDrawCircularArcAcuteReverse.swf b/tests/data/compare/ezcGraphFlashDriverTest_testDrawCircularArcAcuteReverse.swf Binary files differindex 867031c..867031c 100644 --- a/tests/data/compare/ezcGraphMingDriverTest_testDrawCircularArcAcuteReverse.swf +++ b/tests/data/compare/ezcGraphFlashDriverTest_testDrawCircularArcAcuteReverse.swf diff --git a/tests/data/compare/ezcGraphMingDriverTest_testDrawCircularArcObtuse.swf b/tests/data/compare/ezcGraphFlashDriverTest_testDrawCircularArcObtuse.swf Binary files differindex 1688f39..1688f39 100644 --- a/tests/data/compare/ezcGraphMingDriverTest_testDrawCircularArcObtuse.swf +++ b/tests/data/compare/ezcGraphFlashDriverTest_testDrawCircularArcObtuse.swf diff --git a/tests/data/compare/ezcGraphMingDriverTest_testDrawLine.swf b/tests/data/compare/ezcGraphFlashDriverTest_testDrawLine.swf Binary files differindex 35d0064..35d0064 100644 --- a/tests/data/compare/ezcGraphMingDriverTest_testDrawLine.swf +++ b/tests/data/compare/ezcGraphFlashDriverTest_testDrawLine.swf diff --git a/tests/data/compare/ezcGraphMingDriverTest_testDrawMultipleBigCircleSectors.swf b/tests/data/compare/ezcGraphFlashDriverTest_testDrawMultipleBigCircleSectors.swf Binary files differindex c195d8e..c195d8e 100644 --- a/tests/data/compare/ezcGraphMingDriverTest_testDrawMultipleBigCircleSectors.swf +++ b/tests/data/compare/ezcGraphFlashDriverTest_testDrawMultipleBigCircleSectors.swf diff --git a/tests/data/compare/ezcGraphMingDriverTest_testDrawMultipleCircleSectors.swf b/tests/data/compare/ezcGraphFlashDriverTest_testDrawMultipleCircleSectors.swf Binary files differindex efccdb8..efccdb8 100644 --- a/tests/data/compare/ezcGraphMingDriverTest_testDrawMultipleCircleSectors.swf +++ b/tests/data/compare/ezcGraphFlashDriverTest_testDrawMultipleCircleSectors.swf diff --git a/tests/data/compare/ezcGraphMingDriverTest_testDrawMultipleCircularArcs.swf b/tests/data/compare/ezcGraphFlashDriverTest_testDrawMultipleCircularArcs.swf Binary files differindex a8f4517..a8f4517 100644 --- a/tests/data/compare/ezcGraphMingDriverTest_testDrawMultipleCircularArcs.swf +++ b/tests/data/compare/ezcGraphFlashDriverTest_testDrawMultipleCircularArcs.swf diff --git a/tests/data/compare/ezcGraphMingDriverTest_testDrawMultipleFilledTransparentPolygons.swf b/tests/data/compare/ezcGraphFlashDriverTest_testDrawMultipleFilledTransparentPolygons.swf Binary files differindex dc6fd2d..dc6fd2d 100644 --- a/tests/data/compare/ezcGraphMingDriverTest_testDrawMultipleFilledTransparentPolygons.swf +++ b/tests/data/compare/ezcGraphFlashDriverTest_testDrawMultipleFilledTransparentPolygons.swf diff --git a/tests/data/compare/ezcGraphMingDriverTest_testDrawPolygonFivePoints.swf b/tests/data/compare/ezcGraphFlashDriverTest_testDrawPolygonFivePoints.swf Binary files differindex 04bcbd1..04bcbd1 100644 --- a/tests/data/compare/ezcGraphMingDriverTest_testDrawPolygonFivePoints.swf +++ b/tests/data/compare/ezcGraphFlashDriverTest_testDrawPolygonFivePoints.swf diff --git a/tests/data/compare/ezcGraphMingDriverTest_testDrawPolygonThreePointsFilled.swf b/tests/data/compare/ezcGraphFlashDriverTest_testDrawPolygonThreePointsFilled.swf Binary files differindex 9db36cf..9db36cf 100644 --- a/tests/data/compare/ezcGraphMingDriverTest_testDrawPolygonThreePointsFilled.swf +++ b/tests/data/compare/ezcGraphFlashDriverTest_testDrawPolygonThreePointsFilled.swf diff --git a/tests/data/compare/ezcGraphMingDriverTest_testDrawPolygonThreePointsNotFilled.swf b/tests/data/compare/ezcGraphFlashDriverTest_testDrawPolygonThreePointsNotFilled.swf Binary files differindex bfc602d..bfc602d 100644 --- a/tests/data/compare/ezcGraphMingDriverTest_testDrawPolygonThreePointsNotFilled.swf +++ b/tests/data/compare/ezcGraphFlashDriverTest_testDrawPolygonThreePointsNotFilled.swf diff --git a/tests/data/compare/ezcGraphMingDriverTest_testDrawStringWithSpecialChars.swf b/tests/data/compare/ezcGraphFlashDriverTest_testDrawStringWithSpecialChars.swf Binary files differindex 9729c89..9729c89 100644 --- a/tests/data/compare/ezcGraphMingDriverTest_testDrawStringWithSpecialChars.swf +++ b/tests/data/compare/ezcGraphFlashDriverTest_testDrawStringWithSpecialChars.swf diff --git a/tests/data/compare/ezcGraphMingDriverTest_testDrawTextBoxLongSpacedString.swf b/tests/data/compare/ezcGraphFlashDriverTest_testDrawTextBoxLongSpacedString.swf Binary files differindex dec147f..dec147f 100644 --- a/tests/data/compare/ezcGraphMingDriverTest_testDrawTextBoxLongSpacedString.swf +++ b/tests/data/compare/ezcGraphFlashDriverTest_testDrawTextBoxLongSpacedString.swf diff --git a/tests/data/compare/ezcGraphMingDriverTest_testDrawTextBoxLongSpacedStringCenter.swf b/tests/data/compare/ezcGraphFlashDriverTest_testDrawTextBoxLongSpacedStringCenter.swf Binary files differindex 6ea86a5..6ea86a5 100644 --- a/tests/data/compare/ezcGraphMingDriverTest_testDrawTextBoxLongSpacedStringCenter.swf +++ b/tests/data/compare/ezcGraphFlashDriverTest_testDrawTextBoxLongSpacedStringCenter.swf diff --git a/tests/data/compare/ezcGraphMingDriverTest_testDrawTextBoxLongSpacedStringCenterBottom.swf b/tests/data/compare/ezcGraphFlashDriverTest_testDrawTextBoxLongSpacedStringCenterBottom.swf Binary files differindex 0cf6981..0cf6981 100644 --- a/tests/data/compare/ezcGraphMingDriverTest_testDrawTextBoxLongSpacedStringCenterBottom.swf +++ b/tests/data/compare/ezcGraphFlashDriverTest_testDrawTextBoxLongSpacedStringCenterBottom.swf diff --git a/tests/data/compare/ezcGraphMingDriverTest_testDrawTextBoxLongSpacedStringRight.swf b/tests/data/compare/ezcGraphFlashDriverTest_testDrawTextBoxLongSpacedStringRight.swf Binary files differindex 408a19b..408a19b 100644 --- a/tests/data/compare/ezcGraphMingDriverTest_testDrawTextBoxLongSpacedStringRight.swf +++ b/tests/data/compare/ezcGraphFlashDriverTest_testDrawTextBoxLongSpacedStringRight.swf diff --git a/tests/data/compare/ezcGraphMingDriverTest_testDrawTextBoxLongSpacedStringRightMiddle.swf b/tests/data/compare/ezcGraphFlashDriverTest_testDrawTextBoxLongSpacedStringRightMiddle.swf Binary files differindex 69d3c7f..69d3c7f 100644 --- a/tests/data/compare/ezcGraphMingDriverTest_testDrawTextBoxLongSpacedStringRightMiddle.swf +++ b/tests/data/compare/ezcGraphFlashDriverTest_testDrawTextBoxLongSpacedStringRightMiddle.swf diff --git a/tests/data/compare/ezcGraphMingDriverTest_testDrawTextBoxLongString.swf b/tests/data/compare/ezcGraphFlashDriverTest_testDrawTextBoxLongString.swf Binary files differindex d16c4b5..d16c4b5 100644 --- a/tests/data/compare/ezcGraphMingDriverTest_testDrawTextBoxLongString.swf +++ b/tests/data/compare/ezcGraphFlashDriverTest_testDrawTextBoxLongString.swf diff --git a/tests/data/compare/ezcGraphMingDriverTest_testDrawTextBoxManualBreak.swf b/tests/data/compare/ezcGraphFlashDriverTest_testDrawTextBoxManualBreak.swf Binary files differindex 874db81..874db81 100644 --- a/tests/data/compare/ezcGraphMingDriverTest_testDrawTextBoxManualBreak.swf +++ b/tests/data/compare/ezcGraphFlashDriverTest_testDrawTextBoxManualBreak.swf diff --git a/tests/data/compare/ezcGraphMingDriverTest_testDrawTextBoxShortString.swf b/tests/data/compare/ezcGraphFlashDriverTest_testDrawTextBoxShortString.swf Binary files differindex ca26e74..ca26e74 100644 --- a/tests/data/compare/ezcGraphMingDriverTest_testDrawTextBoxShortString.swf +++ b/tests/data/compare/ezcGraphFlashDriverTest_testDrawTextBoxShortString.swf diff --git a/tests/data/compare/ezcGraphMingDriverTest_testDrawTextBoxStringCenter.swf b/tests/data/compare/ezcGraphFlashDriverTest_testDrawTextBoxStringCenter.swf Binary files differindex 2302623..2302623 100644 --- a/tests/data/compare/ezcGraphMingDriverTest_testDrawTextBoxStringCenter.swf +++ b/tests/data/compare/ezcGraphFlashDriverTest_testDrawTextBoxStringCenter.swf diff --git a/tests/data/compare/ezcGraphMingDriverTest_testDrawTextBoxStringCenterMiddle.swf b/tests/data/compare/ezcGraphFlashDriverTest_testDrawTextBoxStringCenterMiddle.swf Binary files differindex 504364c..504364c 100644 --- a/tests/data/compare/ezcGraphMingDriverTest_testDrawTextBoxStringCenterMiddle.swf +++ b/tests/data/compare/ezcGraphFlashDriverTest_testDrawTextBoxStringCenterMiddle.swf diff --git a/tests/data/compare/ezcGraphMingDriverTest_testDrawTextBoxStringRight.swf b/tests/data/compare/ezcGraphFlashDriverTest_testDrawTextBoxStringRight.swf Binary files differindex 5ee0813..5ee0813 100644 --- a/tests/data/compare/ezcGraphMingDriverTest_testDrawTextBoxStringRight.swf +++ b/tests/data/compare/ezcGraphFlashDriverTest_testDrawTextBoxStringRight.swf diff --git a/tests/data/compare/ezcGraphMingDriverTest_testDrawTextBoxStringRightBottom.swf b/tests/data/compare/ezcGraphFlashDriverTest_testDrawTextBoxStringRightBottom.swf Binary files differindex f405403..f405403 100644 --- a/tests/data/compare/ezcGraphMingDriverTest_testDrawTextBoxStringRightBottom.swf +++ b/tests/data/compare/ezcGraphFlashDriverTest_testDrawTextBoxStringRightBottom.swf diff --git a/tests/data/compare/ezcGraphMingDriverTest_testDrawTextBoxStringSampleRight.swf b/tests/data/compare/ezcGraphFlashDriverTest_testDrawTextBoxStringSampleRight.swf Binary files differindex 28d89e2..28d89e2 100644 --- a/tests/data/compare/ezcGraphMingDriverTest_testDrawTextBoxStringSampleRight.swf +++ b/tests/data/compare/ezcGraphFlashDriverTest_testDrawTextBoxStringSampleRight.swf diff --git a/tests/data/compare/ezcGraphMingDriverTest_testDrawTextWithBackground.swf b/tests/data/compare/ezcGraphFlashDriverTest_testDrawTextWithBackground.swf Binary files differindex e55f677..e55f677 100644 --- a/tests/data/compare/ezcGraphMingDriverTest_testDrawTextWithBackground.swf +++ b/tests/data/compare/ezcGraphFlashDriverTest_testDrawTextWithBackground.swf diff --git a/tests/data/compare/ezcGraphMingDriverTest_testDrawTextWithBorder.swf b/tests/data/compare/ezcGraphFlashDriverTest_testDrawTextWithBorder.swf Binary files differindex 3ca36bc..3ca36bc 100644 --- a/tests/data/compare/ezcGraphMingDriverTest_testDrawTextWithBorder.swf +++ b/tests/data/compare/ezcGraphFlashDriverTest_testDrawTextWithBorder.swf diff --git a/tests/data/compare/ezcGraphMingDriverTest_testDrawTextWithCustomTextShadow.swf b/tests/data/compare/ezcGraphFlashDriverTest_testDrawTextWithCustomTextShadow.swf Binary files differindex 232d8ae..232d8ae 100644 --- a/tests/data/compare/ezcGraphMingDriverTest_testDrawTextWithCustomTextShadow.swf +++ b/tests/data/compare/ezcGraphFlashDriverTest_testDrawTextWithCustomTextShadow.swf diff --git a/tests/data/compare/ezcGraphMingDriverTest_testDrawTextWithMinimizedBorderAndBackgroundBottomRight.swf b/tests/data/compare/ezcGraphFlashDriverTest_testDrawTextWithMinimizedBorderAndBackgroundBottomRight.swf Binary files differindex 40cbd72..40cbd72 100644 --- a/tests/data/compare/ezcGraphMingDriverTest_testDrawTextWithMinimizedBorderAndBackgroundBottomRight.swf +++ b/tests/data/compare/ezcGraphFlashDriverTest_testDrawTextWithMinimizedBorderAndBackgroundBottomRight.swf diff --git a/tests/data/compare/ezcGraphMingDriverTest_testDrawTextWithMinimizedBorderAndBackgroundMiddleCenter.swf b/tests/data/compare/ezcGraphFlashDriverTest_testDrawTextWithMinimizedBorderAndBackgroundMiddleCenter.swf Binary files differindex 93659df..93659df 100644 --- a/tests/data/compare/ezcGraphMingDriverTest_testDrawTextWithMinimizedBorderAndBackgroundMiddleCenter.swf +++ b/tests/data/compare/ezcGraphFlashDriverTest_testDrawTextWithMinimizedBorderAndBackgroundMiddleCenter.swf diff --git a/tests/data/compare/ezcGraphMingDriverTest_testDrawTextWithMinimizedBorderAndBackgroundTopLeft.swf b/tests/data/compare/ezcGraphFlashDriverTest_testDrawTextWithMinimizedBorderAndBackgroundTopLeft.swf Binary files differindex db0d241..db0d241 100644 --- a/tests/data/compare/ezcGraphMingDriverTest_testDrawTextWithMinimizedBorderAndBackgroundTopLeft.swf +++ b/tests/data/compare/ezcGraphFlashDriverTest_testDrawTextWithMinimizedBorderAndBackgroundTopLeft.swf diff --git a/tests/data/compare/ezcGraphMingDriverTest_testDrawTextWithTextShadow.swf b/tests/data/compare/ezcGraphFlashDriverTest_testDrawTextWithTextShadow.swf Binary files differindex c4a11a5..c4a11a5 100644 --- a/tests/data/compare/ezcGraphMingDriverTest_testDrawTextWithTextShadow.swf +++ b/tests/data/compare/ezcGraphFlashDriverTest_testDrawTextWithTextShadow.swf diff --git a/tests/data/compare/ezcGraphMingDriverTest_testRenderLabeledFlashPieChart.swf b/tests/data/compare/ezcGraphFlashDriverTest_testRenderLabeledFlashPieChart.swf Binary files differindex ef2ef82..ef2ef82 100644 --- a/tests/data/compare/ezcGraphMingDriverTest_testRenderLabeledFlashPieChart.swf +++ b/tests/data/compare/ezcGraphFlashDriverTest_testRenderLabeledFlashPieChart.swf diff --git a/tests/driver_ming_test.php b/tests/driver_flash_test.php index 83066fb..6047391 100644 --- a/tests/driver_ming_test.php +++ b/tests/driver_flash_test.php @@ -1,6 +1,6 @@ <?php /** - * ezcGraphMingDriverTest + * ezcGraphFlashDriverTest * * @package Graph * @version //autogen// @@ -15,7 +15,7 @@ * @package ImageAnalysis * @subpackage Tests */ -class ezcGraphMingDriverTest extends ezcTestCase +class ezcGraphFlashDriverTest extends ezcTestCase { protected $driver; @@ -31,7 +31,7 @@ class ezcGraphMingDriverTest extends ezcTestCase public static function suite() { - return new PHPUnit_Framework_TestSuite( "ezcGraphMingDriverTest" ); + return new PHPUnit_Framework_TestSuite( "ezcGraphFlashDriverTest" ); } protected function setUp() @@ -45,7 +45,7 @@ class ezcGraphMingDriverTest extends ezcTestCase $this->tempDir = $this->createTempDir( __CLASS__ . sprintf( '_%03d_', ++$i ) ) . '/'; $this->basePath = dirname( __FILE__ ) . '/data/'; - $this->driver = new ezcGraphMingDriver(); + $this->driver = new ezcGraphFlashDriver(); $this->driver->options->width = 200; $this->driver->options->height = 100; @@ -480,12 +480,12 @@ class ezcGraphMingDriverTest extends ezcTestCase 50 ); } - catch ( ezcGraphMingBitmapBoundingsException $e ) + catch ( ezcGraphFlashBitmapBoundingsException $e ) { return true; } - $this->fail( 'Expected ezcGraphMingBitmapBoundingsException.' ); + $this->fail( 'Expected ezcGraphFlashBitmapBoundingsException.' ); } public function testDrawImageGif() @@ -501,12 +501,12 @@ class ezcGraphMingDriverTest extends ezcTestCase 100 ); } - catch ( ezcGraphMingBitmapTypeException $e ) + catch ( ezcGraphFlashBitmapTypeException $e ) { return true; } - $this->fail( 'Expected ezcGraphMingBitmapTypeException.' ); + $this->fail( 'Expected ezcGraphFlashBitmapTypeException.' ); } public function testDrawImagePng() @@ -522,12 +522,12 @@ class ezcGraphMingDriverTest extends ezcTestCase 100 ); } - catch ( ezcGraphMingBitmapTypeException $e ) + catch ( ezcGraphFlashBitmapTypeException $e ) { return true; } - $this->fail( 'Expected ezcGraphMingBitmapBoundingsException.' ); + $this->fail( 'Expected ezcGraphFlashBitmapBoundingsException.' ); } public function testDrawImageJpeg() @@ -1336,7 +1336,7 @@ class ezcGraphMingDriverTest extends ezcTestCase $chart->renderer->options->pieChartHeight = 16; $chart->renderer->options->legendSymbolGleam = .5; - $chart->driver = new ezcGraphMingDriver(); + $chart->driver = new ezcGraphFlashDriver(); $chart->render( 500, 200, $filename ); $this->compare( @@ -1415,21 +1415,21 @@ class ezcGraphMingDriverTest extends ezcTestCase ); } - public function testMingDriverOptionsPropertyCompression() + public function testFlashDriverOptionsPropertyCompression() { - $options = new ezcGraphMingDriverOptions(); + $options = new ezcGraphFlashDriverOptions(); $this->assertSame( 9, $options->compression, - 'Wrong default value for property compression in class ezcGraphMingDriverOptions' + 'Wrong default value for property compression in class ezcGraphFlashDriverOptions' ); $options->compression = 4; $this->assertSame( 4, $options->compression, - 'Setting property value did not work for property compression in class ezcGraphMingDriverOptions' + 'Setting property value did not work for property compression in class ezcGraphFlashDriverOptions' ); try @@ -1444,21 +1444,21 @@ class ezcGraphMingDriverTest extends ezcTestCase $this->fail( 'Expected ezcBaseValueException.' ); } - public function testMingDriverOptionsPropertyCircleResolution() + public function testFlashDriverOptionsPropertyCircleResolution() { - $options = new ezcGraphMingDriverOptions(); + $options = new ezcGraphFlashDriverOptions(); $this->assertSame( 2., $options->circleResolution, - 'Wrong default value for property circleResolution in class ezcGraphMingDriverOptions' + 'Wrong default value for property circleResolution in class ezcGraphFlashDriverOptions' ); $options->circleResolution = 5.; $this->assertSame( 5., $options->circleResolution, - 'Setting property value did not work for property circleResolution in class ezcGraphMingDriverOptions' + 'Setting property value did not work for property circleResolution in class ezcGraphFlashDriverOptions' ); try diff --git a/tests/suite.php b/tests/suite.php index b546add..71d3748 100644 --- a/tests/suite.php +++ b/tests/suite.php @@ -32,7 +32,7 @@ require_once 'axis_centered_renderer_test.php'; require_once 'driver_options_test.php'; require_once 'driver_gd_test.php'; require_once 'driver_svg_test.php'; -require_once 'driver_ming_test.php'; +require_once 'driver_flash_test.php'; require_once 'font_test.php'; require_once 'palette_test.php'; require_once 'matrix_test.php'; @@ -73,7 +73,7 @@ class ezcGraphSuite extends PHPUnit_Framework_TestSuite $this->addTest( ezcGraphDriverOptionsTest::suite() ); $this->addTest( ezcGraphGdDriverTest::suite() ); $this->addTest( ezcGraphSvgDriverTest::suite() ); - $this->addTest( ezcGraphMingDriverTest::suite() ); + $this->addTest( ezcGraphFlashDriverTest::suite() ); $this->addTest( ezcGraphFontTest::suite() ); $this->addTest( ezcGraphTextTest::suite() ); $this->addTest( ezcGraphPaletteTest::suite() ); |