Skip Menu |

This queue is for tickets about the Apache-Test CPAN distribution.

Report information
The Basics
Id: 21993
Status: resolved
Priority: 0/
Queue: Apache-Test

People
Owner: Nobody in particular
Requestors: WMCKEE [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.28
Fixed in: (no value)



Subject: Apache::TestConfigPHP does not support subdirs
Geoff/Chris, In trying to implement PHP testing, I noticed that the TestConfigPHP module does not support sub directories within the t/response/Test* dirs. The TestConfigPerl package does which is why I was expecting that behavior. Thanks, William
On Tue Oct 10 06:59:39 2006, WMCKEE wrote: Show quoted text
> Geoff/Chris, > > In trying to implement PHP testing, I noticed that the TestConfigPHP > module does not support sub directories within the t/response/Test* > dirs. The TestConfigPerl package does which is why I was expecting that > behavior.
Is this issue still valid? I just took a look at the php config code: sub configure_php_tests_pick { my($self, $entries) = @_; for my $subdir (qw(Response)) { my $dir = catfile $self->{vars}->{t_dir}, lc $subdir; next unless -d $dir; finddepth(sub { return unless /\.php$/; my $file = catfile $File::Find::dir, $_; my $module = abs2rel $file, $dir; my $status = $self->run_apache_test_config_scan($file); push @$entries, [$file, $module, $subdir, $status]; }, $dir); } } Does that do what you are asking for?
Hi PHRED, That code looks good. I haven't tried using the PHP test system for awhile now and don't have a current testsuite readily available. Closing this report. William -- Knowmad Technologies http://www.knowmad.com