Some Gallery Unit Tests Failing (Phpunit)

shakeb

Joined: 2005-01-04
Posts: 25
Posted: Mon, 2006-01-02 03:10

Hi,
I hope that this is the right area to post this.

Quote:
Failure Details

testCodeAudit
Yay! We are down to 0 lines longer than 100 characters; update the failure thresholds in this unit test.

testAlbumProperties
Mismatch At: [] 640 !== 1280
640 type:string
1280 type:string

testPerformOperations
Error (ERROR_TOOLKIT_FAILURE)
in E:\www\gallery\modules\gd\classes\GdToolkitHelper.class at line 354 (GdToolkitTest::error)
in E:\www\gallery\modules\gd\test\phpunit\GdToolkitTest.class at line 110 (GdToolkitTest::discoverMimeTypes)
in E:\www\gallery\lib\tools\phpunit\phpunit.inc at line 292 (GdToolkitTest::testPerformOperations)
in E:\www\gallery\lib\tools\phpunit\phpunit.inc at line 380 (GdToolkitTest::runTest)
in E:\www\gallery\lib\tools\phpunit\phpunit.inc at line 551 (GdToolkitTest::runBare)
in E:\www\gallery\lib\tools\phpunit\phpunit.inc at line 258 (PrettyTestResult::run)
in E:\www\gallery\lib\tools\phpunit\phpunit.inc at line 462 (GdToolkitTest::run)
in E:\www\gallery\lib\tools\phpunit\phpunit.inc at line 462 (TestSuite::run)
in E:\www\gallery\lib\tools\phpunit\index.tpl at line 216 (TestSuite::run)
in E:\www\gallery\lib\tools\phpunit\index.php at line 209

testDiscoverMimeTypes
Error (ERROR_TOOLKIT_FAILURE)
in E:\www\gallery\modules\gd\classes\GdToolkitHelper.class at line 354 (GdToolkitTest::error)
in E:\www\gallery\modules\gd\test\phpunit\GdToolkitTest.class at line 360 (GdToolkitTest::discoverMimeTypes)
in E:\www\gallery\lib\tools\phpunit\phpunit.inc at line 292 (GdToolkitTest::testDiscoverMimeTypes)
in E:\www\gallery\lib\tools\phpunit\phpunit.inc at line 380 (GdToolkitTest::runTest)
in E:\www\gallery\lib\tools\phpunit\phpunit.inc at line 551 (GdToolkitTest::runBare)
in E:\www\gallery\lib\tools\phpunit\phpunit.inc at line 258 (PrettyTestResult::run)
in E:\www\gallery\lib\tools\phpunit\phpunit.inc at line 462 (GdToolkitTest::run)
in E:\www\gallery\lib\tools\phpunit\phpunit.inc at line 462 (TestSuite::run)
in E:\www\gallery\lib\tools\phpunit\index.tpl at line 216 (TestSuite::run)
in E:\www\gallery\lib\tools\phpunit\index.php at line 209

testGetOperationsAndProperties
Error (ERROR_TOOLKIT_FAILURE)
in E:\www\gallery\modules\gd\classes\GdToolkitHelper.class at line 354 (GdToolkitTest::error)
in E:\www\gallery\modules\gd\classes\GdToolkitHelper.class at line 62 (GdToolkitTest::discoverMimeTypes)
in E:\www\gallery\modules\gd\test\phpunit\GdToolkitTest.class at line 384 (GdToolkitTest::getOperationsAndProperties)
in E:\www\gallery\lib\tools\phpunit\phpunit.inc at line 292 (GdToolkitTest::testGetOperationsAndProperties)
in E:\www\gallery\lib\tools\phpunit\phpunit.inc at line 380 (GdToolkitTest::runTest)
in E:\www\gallery\lib\tools\phpunit\phpunit.inc at line 551 (GdToolkitTest::runBare)
in E:\www\gallery\lib\tools\phpunit\phpunit.inc at line 258 (PrettyTestResult::run)
in E:\www\gallery\lib\tools\phpunit\phpunit.inc at line 462 (GdToolkitTest::run)
in E:\www\gallery\lib\tools\phpunit\phpunit.inc at line 462 (TestSuite::run)
in E:\www\gallery\lib\tools\phpunit\index.tpl at line 216 (TestSuite::run)
in E:\www\gallery\lib\tools\phpunit\index.php at line 209

testAddAndRemoveUserAndGroupPermission
removeUserPermission, recursive
Mismatch At: [] Object id #6913 !== Object id #6914
O:12:"GalleryEvent":3:{s:10:"_eventName";s:25:"Gallery::RemovePermission";s:7:"_entity";N;s:5:"_data";a:3:{s:6:"userId";i:6;s:7:"groupId";N;s:14:"itemIdsAndBits";a:5:{i:10892;i:6;i:10894;i:7;i:10896;i:7;i:10899;i:7;i:10900;i:7;}}} type:object, class:GalleryEvent
O:12:"GalleryEvent":3:{s:10:"_eventName";s:25:"Gallery::RemovePermission";s:7:"_entity";N;s:5:"_data";a:3:{s:6:"userId";i:6;s:7:"groupId";N;s:14:"itemIdsAndBits";a:5:{i:10896;i:7;i:10899;i:7;i:10900;i:7;i:10892;i:6;i:10894;i:6;}}} type:object, class:GalleryEvent

testStrftime
Mismatch At: [] 6 11 !== %&s11d
6 11 type:string
%&s11d type:string

I do have some Development Environment Variables warnings though

short_open_tag 1 off or 0
magic_quotes_gpc on or 1
display_errors on or 1
allow_url_fopen 1 off or 0
include_path .;C:\php5\pear /bogus


PHP Info Link: http://shakeb.no-ip.info/test.php
Gallery version = 2.0.2 core 1.0.0.2
PHP version = 5.0.5 apache2handler
Webserver = Apache/2.0.55 (Win32) PHP/5.0.5
Database = mysql 5.0.16-nt
Toolkits = Exif, Thumbnail, Gd, SquareThumb, Dcraw, Ffmpeg, ImageMagick, NetPBM, ArchiveUpload
Operating system = Windows NT REGENTNET 5.1 build 2600
Browser = Opera/8.50 (Windows NT 5.1; U; en)

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2006-01-02 04:08

testCodeAudit
Yay! We are down to 0 lines longer than 100 characters; update the failure thresholds in this unit test.

you can ignore that. that's because you don't use a cvs version or if you haven't run cvs update.

@rest:
obviously there's a problem with your GD.

and strftime may be fixed since 2.0.2, don't remember.

generally, unit test runs with non cvs versions are not very helpful, but thanks anyway :)