------------------------------------------------------------------------------- These tests are not unit or regression tests. ------------------------------------------------------------------------------- This is because it is not possible to compare output from Image_Graph with an expected "value" (i.e. is this graph equal to this graph). The problem is similar to testing user interfaces. The provided test "cases" are visual test suites that renders Image_Graph output, the output should then be viewed and checked for inconsistencies on a visual base, fx. this line chart does not show as _expected_, this gradient fill does not fill to the edges of the area, the text does not align properly, etc. The expected results can be seen on http://pear.veggerby.dk/test/ The categories within the tests/ folder are: / These tests are basic tests, simply testing if the core requirements are met, for example testing if GD support is in place, if Freetype is installed and working, etc. /axis Tests the capabilities of the Image_Graph_Axis class (and sub- classes hereof) /plot Tests individual plots (do they plot the way one would expect?). /driver Tests the driver functionality - a basic assumption is made in this case: if all the primitives of a driver is tested to yield the expected output (not necessarily succesfully, but not erroneous - since some formats does not support everything, i.e. PDF does not support alpha- blending) the driver is assumed working. When/if all drivers pass this, we assume all driversare working consistently, and all other test cases are performed upon a single driver (normally 'png') and all other drivers are assumed to behave accordingly (or consistently!), meaning it does not necessarily output the same, but it outputs what can be expected taking the limitations of the driver into account.