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

ID: 16451
Updated by: alexander.merz@gmail.com
Reported By: daniel dot oconnor at gmail dot com
Summary: Unit tests vs directory layout
-Status: Open
+Status: Closed
Type: Bug
Package: Net_IPv6
Package Version: CVS
PHP Version: 5.2.5
-Assigned To:
+Assigned To: alexmerz
Roadmap Versions:
New Comment:

-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: alexmerz
Thank you for your bug report. This issue has been fixed
in the latest released version of the package, which you can download at
http://pear.php.net/get/




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

[2009-07-28 01:35:15] doconnor

Fix by:

clockwerx@clockwerx-desktop:~/pear-svn/packages/Net_IPv6/trunk$ svn
mkdir Net
A Net
clockwerx@clockwerx-desktop:~/pear-svn/packages/Net_IPv6/trunk$ svn mv
IPv6.php Net/
A Net/IPv6.php
D IPv6.php
clockwerx@clockwerx-desktop:~/pear-svn/packages/Net_IPv6/trunk$ php
tests/AllTests.php
PHPUnit 3.3.17 by Sebastian Bergmann.

...............................

Time: 0 seconds

OK (31 tests, 34 assertions)
clockwerx@clockwerx-desktop:~/pear-svn/packages/Net_IPv6/trunk$

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

[2009-07-18 14:38:29] doconnor

Description:
------------
Not compatible with pear wide test suite at the moment.

Fixable with:
mkdir Net && svn mv IPv6.php Net/

and regenerating you package.xml

Test script:
---------------
clockwerx@clockwerx-desktop:~/pear-svn/packages/Net_IPv6/trunk$ php
tests/AllTests.php

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

Actual result:
--------------
clockwerx@clockwerx-desktop:~/pear-svn/packages/Net_IPv6/trunk$ php
tests/AllTests.php

Warning: require_once(Net/IPv6.php): failed to open stream: No such file
or directory in
/home/clockwerx/pear-svn/packages/Net_IPv6/trunk/tests/NetIPv6Test.php
on line 21

Call Stack:
0.0007 66560 1. {main}()
/home/clockwerx/pear-svn/packages/Net_IPv6/trunk/tests/AllTests.php:0
0.8026 3982184 2.
require_once('/home/clockwerx/pear-svn/packages/Net_IPv6/trunk/tests/NetIPv6Test.php')
/home/clockwerx/pear-svn/packages/Net_IPv6/trunk/tests/AllTests.php:11


Fatal error: require_once(): Failed opening required 'Net/IPv6.php'
(include_path='.:/usr/share/php:/usr/share/pear') in
/home/clockwerx/pear-svn/packages/Net_IPv6/trunk/tests/NetIPv6Test.php
on line 21

Call Stack:
0.0007 66560 1. {main}()
/home/clockwerx/pear-svn/packages/Net_IPv6/trunk/tests/AllTests.php:0
0.8026 3982184 2.
require_once('/home/clockwerx/pear-svn/packages/Net_IPv6/trunk/tests/NetIPv6Test.php')
/home/clockwerx/pear-svn/packages/Net_IPv6/trunk/tests/AllTests.php:11

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

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedNov 18, '10 at 3:14a
activeNov 18, '10 at 3:14a
posts1
users1
websitepear.php.net

1 user in discussion

Alexander Merz: 1 post

People

Translate

site design / logo © 2021 Grokbase