Ubuntu

Unit tests inside PEAR packages need to go into /usr/share/php-test, not /usr/share/php/tests

Reported by Stuart Herbert on 2011-07-25
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
php5 (Ubuntu)
Undecided
Unassigned

Bug Description

The PHP Community is adopting PSR-0, a standard for autoloading PHP classes from directories such as /usr/share/php. Unfortunately, Ubuntu currently mixes unit test code and code meant for production under /usr/share/php, even though the unit test code isn't PSR-0-compliant.

It would be a great help to the PHP community if Ubuntu changed the 'test_dir' configuration parameter of the PEAR installer to install unit tests into a separate folder hierarchy, such as /usr/share/php-test.

This bug applies to Ubuntu 11.04 and earlier.

Ondřej Surý (ondrej) wrote :

Could you please fill this bug with Debian? It would help me very much to not forget about this issue and since Ubuntu generally pulls most of the PHP packaging from Debian, it would be fixed in the Ubuntu at the same time.

Thanks,
O.

Dave Walker (davewalker) wrote :

@Stuart, When you say - "This bug applies to Ubuntu 11.04 and earlier." <-- Does that mean it's fixed in our current development version, Oneiric / 11.10?

Thanks.

Changed in php5 (Ubuntu):
status: New → Incomplete
Christian Weiske (cweiske) wrote :

I doubt that it is fixed in the current version. This detail was just to certify that the problem has existed in previous ubuntu versions, and is still there in the current stable version.

Launchpad Janitor (janitor) wrote :

[Expired for php5 (Ubuntu) because there has been no activity for 60 days.]

Changed in php5 (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers