FAQ
Edit report at https://pear.php.net/bugs/bug.php?id=16476&edit=1

ID: 16476
Updated by: danielc@analysisandsolutions.com
Reported By: daniel dot oconnor at gmail dot com
Summary: Unit tests fail
-Status: Open
+Status: Analyzed
Type: Bug
Package: PEAR_Info
Package Version: CVS
PHP Version: 5.2.5
Roadmap Versions:
New Comment:

-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.


Previous Comments:
------------------------------------------------------------------------

[2010-04-25 15:44:26] doconnor

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.

------------------------------------------------------------------------

[2009-07-28 01:33:21] doconnor

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.

------------------------------------------------------------------------

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedDec 11, '11 at 4:20a
activeDec 11, '11 at 4:20a
posts1
users1
websitepear.php.net

1 user in discussion

Danielc: 1 post

People

Translate

site design / logo © 2022 Grokbase