Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.9.2

Bug #16476 Unit tests fail
Submitted: 2009-07-28 05:33 UTC
From: doconnor Assigned:
Status: Analyzed Package: PEAR_Info (version CVS)
PHP Version: 5.2.5 OS:
Roadmaps: (Not assigned)    
Subscription  


 [2009-07-28 05:33 UTC] doconnor (Daniel O'Connor)
Description: ------------ Unit tests fail because they change the current working directory (it looks like). Test script: --------------- php tests/AllTests.php Expected result: ---------------- Tests run, pass Actual result: -------------- /home/clockwerx/pear-svn/packages/PEAR_Info/trunk/tests/AllTests.php PHPUnit 3.3.17 by Sebastian Bergmann. FFFF Time: 0 seconds There were 4 failures: 1) /home/clockwerx/pear-svn/packages/PEAR_Info/trunk/tests/customConfig.phpt --- Expected +++ Actual @@ -1,7 +1,5 @@ -testConfigFilesExistWithDefaultNameInPearDir : OK -testConfigFilesExistWithCustomNameInPearDir : OK -testConfigFilesExistInUserDir : OK -testNoConfigFilesFoundIntoPearDir : OK -testNoConfigFilesFoundIntoUserDir : OK -testShowResultsWithRenderOptions : OK -testInvalidPearDir : OK \ No newline at end of file +Warning: include_once(PEAR/Info.php): failed to open stream: No such file or directory in /home/clockwerx/pear-svn/packages/PEAR_Info/trunk/tests/customConfig.php on line 12 + +Warning: include_once(): Failed opening 'PEAR/Info.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /home/clockwerx/pear-svn/packages/PEAR_Info/trunk/tests/customConfig.php on line 12 + +Fatal error: Class 'PEAR_Config' not found in /home/clockwerx/pear-svn/packages/PEAR_Info/trunk/tests/customConfig.php on line 26 \ No newline at end of file /home/clockwerx/pear-svn/packages/PEAR_Info/trunk/tests/AllTests.php:68 /home/clockwerx/pear-svn/packages/PEAR_Info/trunk/tests/AllTests.php:88 2) /home/clockwerx/pear-svn/packages/PEAR_Info/trunk/tests/defaultConfig.phpt --- Expected +++ Actual @@ -1 +1,5 @@ -testConfigFilesExistInSysConfDir : OK \ No newline at end of file +Warning: include_once(PEAR/Info.php): failed to open stream: No such file or directory in /home/clockwerx/pear-svn/packages/PEAR_Info/trunk/tests/defaultConfig.php on line 11 + +Warning: include_once(): Failed opening 'PEAR/Info.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /home/clockwerx/pear-svn/packages/PEAR_Info/trunk/tests/defaultConfig.php on line 11 + +Fatal error: Class 'PEAR_Config' not found in /home/clockwerx/pear-svn/packages/PEAR_Info/trunk/tests/defaultConfig.php on line 21 \ No newline at end of file /home/clockwerx/pear-svn/packages/PEAR_Info/trunk/tests/AllTests.php:68 /home/clockwerx/pear-svn/packages/PEAR_Info/trunk/tests/AllTests.php:88 3) /home/clockwerx/pear-svn/packages/PEAR_Info/trunk/tests/render.phpt --- Expected +++ Actual @@ -1,3 +1,5 @@ -testCustomStyleSheet : OK -testDefaultStyleSheet : OK -testCreditsWithDefaultStyleSheet : OK \ No newline at end of file +Warning: include_once(PEAR/Info.php): failed to open stream: No such file or directory in /home/clockwerx/pear-svn/packages/PEAR_Info/trunk/tests/render.php on line 13 + +Warning: include_once(): Failed opening 'PEAR/Info.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /home/clockwerx/pear-svn/packages/PEAR_Info/trunk/tests/render.php on line 13 + +Fatal error: Class 'PEAR_Config' not found in /home/clockwerx/pear-svn/packages/PEAR_Info/trunk/tests/render.php on line 29 \ No newline at end of file /home/clockwerx/pear-svn/packages/PEAR_Info/trunk/tests/AllTests.php:68 /home/clockwerx/pear-svn/packages/PEAR_Info/trunk/tests/AllTests.php:88 4) /home/clockwerx/pear-svn/packages/PEAR_Info/trunk/tests/install.phpt --- Expected +++ Actual @@ -1,4 +1,5 @@ -testPackageNameInstall : OK -testPackageNameVersionInstall : OK -testPackageNameChannelInstall : OK -testPackageNameVersionChannelInstall : OK \ No newline at end of file +Warning: include_once(PEAR/Info.php): failed to open stream: No such file or directory in /home/clockwerx/pear-svn/packages/PEAR_Info/trunk/tests/install.php on line 11 + +Warning: include_once(): Failed opening 'PEAR/Info.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /home/clockwerx/pear-svn/packages/PEAR_Info/trunk/tests/install.php on line 11 + +Fatal error: Class 'PEAR_Config' not found in /home/clockwerx/pear-svn/packages/PEAR_Info/trunk/tests/install.php on line 21 \ No newline at end of file /home/clockwerx/pear-svn/packages/PEAR_Info/trunk/tests/AllTests.php:68 /home/clockwerx/pear-svn/packages/PEAR_Info/trunk/tests/AllTests.php:88 FAILURES! Tests: 4, Assertions: 0, Failures: 4.

Comments

 [2010-04-25 19:44 UTC] doconnor (Daniel O'Connor)
Additionally php -c ../php.ini -f /home/clockwerx/packages-all/PEAR_Info/tests/AllTests.php PHPUnit 3.4.10 by Sebastian Bergmann. F... Time: 3 seconds, Memory: 10.00Mb There was 1 failure: 1) /home/clockwerx/packages-all/PEAR_Info/tests/render.phpt --- Expected +++ Actual @@ @@ testCustomStyleSheet : OK -testDefaultStyleSheet : OK -testCreditsWithDefaultStyleSheet : OK + +Warning: file_get_contents(@data_dir@/@package_name@/pearinfo.css): failed to open stream: No such file or directory in /home/clockwerx/packages-all/PEAR_Info/PEAR/Info.php on line 460 + +Warning: file_get_contents(@data_dir@/@package_name@/pearinfo.css): failed to open stream: No such file or directory in /home/clockwerx/packages-all/PEAR_Info/PEAR/Info.php on line 460 +testDefaultStyleSheet : HTML strings are not same + +Warning: file_get_contents(@data_dir@/@package_name@/pearinfo.css): failed to open stream: No such file or directory in /home/clockwerx/packages-all/PEAR_Info/PEAR/Info.php on line 460 +testCreditsWithDefaultStyleSheet : HTML strings are not same /home/clockwerx/packages-all/PEAR_Info/tests/AllTests.php:66 /home/clockwerx/packages-all/PEAR_Info/tests/AllTests.php:86 FAILURES! Tests: 4, Assertions: 0, Failures: 1.
 [2011-12-11 10:20 UTC] danielc (Daniel Convissor)
-Status: Open +Status: Analyzed
I just reworked the PEAR_Info test suite to get it running and opened Bug #19127 with a patch. Hopefully Florian (or Davey or Laurent) will give me the go ahead to commit it ASAP. There is still one failure. In "testDefaultStyleSheet" test in "render.phpt", there is a mismatch between the expected HTML and the actual HTML from template.