Ticket #983 (closed defect: fixed)

Opened 7 months ago

Last modified 6 months ago

Graph unitests throw fatal error when ezComponents not available

Reported by: proofek Owned by: mapi
Priority: minor Milestone:
Component: phpUnderControl Version: phpUnderControl 0.5.0
Keywords: Cc:
PHP Version: 5.3-CVS

Description

As per title.

Change History

Changed 7 months ago by proofek

Fix available on branch  ticket-983

Before fix:

#> phpunit tests/Graph/GraphAllTests.php 
PHPUnit 3.4.6 by Sebastian Bergmann.

..F.............PHP Fatal error:  Class 'ezcGraphLineChart' not found in /Users/sebmarek/git/phpUnderControl/src/Graph/LineChart.php on line 61

After fix:

phpunit tests/Graph/GraphAllTests.php 
PHPUnit 3.4.6 by Sebastian Bergmann.

..F.............SSSSSSS

Time: 3 seconds, Memory: 10.00Mb

Tests: 23, Assertions: 353, Failures: 1, Skipped: 7.

and with verbose option additional information displayed

There were 7 skipped tests:

1) phpucChartFactoryTest::testCreateDotChartFromBuildBreakdownTimeline
ezcGraph not installed - skipping the test.

/Users/sebmarek/git/phpUnderControl/tests/AbstractTest.php:134
/Users/sebmarek/git/phpUnderControl/tests/Graph/ChartFactoryTest.php:70

2) phpucChartFactoryTest::testCreatePieChartFromBuildBreakdown
ezcGraph not installed - skipping the test.

/Users/sebmarek/git/phpUnderControl/tests/AbstractTest.php:134
/Users/sebmarek/git/phpUnderControl/tests/Graph/ChartFactoryTest.php:88

3) phpucChartFactoryTest::testCreateLineChartFromUnitCoverage
ezcGraph not installed - skipping the test.

/Users/sebmarek/git/phpUnderControl/tests/AbstractTest.php:134
/Users/sebmarek/git/phpUnderControl/tests/Graph/ChartFactoryTest.php:106

4) phpucDotChartTest::testRender
ezcGraph not installed - skipping the test.

/Users/sebmarek/git/phpUnderControl/tests/AbstractTest.php:134
/Users/sebmarek/git/phpUnderControl/tests/Graph/DotChartTest.php:70

5) phpucLineChartTest::testRender
ezcGraph not installed - skipping the test.

/Users/sebmarek/git/phpUnderControl/tests/AbstractTest.php:134
/Users/sebmarek/git/phpUnderControl/tests/Graph/LineChartTest.php:70

6) phpucPieChartTest::testRender
ezcGraph not installed - skipping the test.

/Users/sebmarek/git/phpUnderControl/tests/AbstractTest.php:134
/Users/sebmarek/git/phpUnderControl/tests/Graph/PieChartTest.php:70

7) phpucTimeChartTest::testRender
ezcGraph not installed - skipping the test.

/Users/sebmarek/git/phpUnderControl/tests/AbstractTest.php:134
/Users/sebmarek/git/phpUnderControl/tests/Graph/TimeChartTest.php:70

Changed 7 months ago by proofek

  • owner changed from proofek to mapi
  • status changed from new to assigned

Changed 6 months ago by mapi

  • status changed from assigned to closed
  • resolution set to fixed

proofek's  branch  merged.

Note: See TracTickets for help on using tickets.