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

ID: 16479
Updated by: [email protected]
Reported By: daniel dot oconnor at gmail dot com
Summary: Unit tests fail - current working directory
-Status: Open
+Status: Closed
Type: Bug
Package: Payment_PayPal_SOAP
Package Version: CVS
PHP Version: 5.2.5
-Assigned To:
+Assigned To: danielc
Roadmap Versions:
New Comment:

-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: danielc
Took action on behalf of QA Team because this has been open for over 2
years.


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

[2009-07-29 01:11:01] doconnor

Description:
------------
Because AllTests.php has a chdir(dirname(__FILE__));, running tests like

php tests/AllTests.php doesn't work (relying on . in include_path)

Test script:
---------------
cd /home/clockwerx/pear-svn/packages/Payment_PayPal_SOAP/trunk/
php tests/AllTests.php



Expected result:
----------------
Tests run

Actual result:
--------------
/home/clockwerx/pear-svn/packages/Payment_PayPal_SOAP/trunk/tests/AllTests.php


Warning: require_once(Payment/PayPal/SOAP.php): failed to open stream:
No such file or directory in
/home/clockwerx/pear-svn/packages/Payment_PayPal_SOAP/trunk/tests/TestCase.php
on line 59

Call Stack:
0.0010 57252 1. {main}()
/home/clockwerx/pear-svn/packages/Payment_PayPal_SOAP/trunk/tests/AllTests.php:0
0.3498 3878612 2.
require_once('/home/clockwerx/pear-svn/packages/Payment_PayPal_SOAP/trunk/tests/ExpressCheckout.php')
/home/clockwerx/pear-svn/packages/Payment_PayPal_SOAP/trunk/tests/AllTests.php:63
0.3513 3929280 3.
require_once('/home/clockwerx/pear-svn/packages/Payment_PayPal_SOAP/trunk/tests/TestCase.php')
/home/clockwerx/pear-svn/packages/Payment_PayPal_SOAP/trunk/tests/ExpressCheckout.php:5


Fatal error: require_once(): Failed opening required
'Payment/PayPal/SOAP.php'
(include_path='.:/usr/share/php:/usr/share/pear') in
/home/clockwerx/pear-svn/packages/Payment_PayPal_SOAP/trunk/tests/TestCase.php
on line 59

Call Stack:
0.0010 57252 1. {main}()
/home/clockwerx/pear-svn/packages/Payment_PayPal_SOAP/trunk/tests/AllTests.php:0
0.3498 3878612 2.
require_once('/home/clockwerx/pear-svn/packages/Payment_PayPal_SOAP/trunk/tests/ExpressCheckout.php')
/home/clockwerx/pear-svn/packages/Payment_PayPal_SOAP/trunk/tests/AllTests.php:63
0.3513 3929280 3.
require_once('/home/clockwerx/pear-svn/packages/Payment_PayPal_SOAP/trunk/tests/TestCase.php')
/home/clockwerx/pear-svn/packages/Payment_PayPal_SOAP/trunk/tests/ExpressCheckout.php:5

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

Search Discussions

Related Discussions

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

1 user in discussion

Danielc: 1 post

People

Translate

site design / logo © 2023 Grokbase