RE: [PEAR-DEV] Problem with pear run-tests for PHPUnit?

From: Date: Thu, 29 Nov 2007 08:13:56 +0000
Subject: RE: [PEAR-DEV] Problem with pear run-tests for PHPUnit?
References: 1 2  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-48622@lists.php.net to get a copy of this message
> Jorrit, > > > > However, the filename 'AllTests.php' is matched against the > >full path > > (on Windows and Linux) so no files ever match. For instance, > > '*AllTests.php' does return the files (but might return a > file called > > 'FileContainingNotAtAllTests.php' as well). I don't know if > this is a > > problem of System or PEAR_Command_Test. > > It works for me on several packages: > > cweiske:~> pear install net_wifi > downloading Net_Wifi-1.0.0.tar ... > Starting to download Net_Wifi-1.0.0.tar (Unknown size) > ..............done: 57,856 bytes > install ok: channel://pear.php.net/Net_Wifi-1.0.0 > cweiske:~> pear run-tests -pu Net_wifi > Running 1 tests > PHPUnit 3.2.0RC3 by Sebastian Bergmann. > > Yes, but the case I described is another situation. In your situation the argument is a package name, in my situation it is a directory. In the case of a package name, the file list is loaded from the registry and scanned for AllTests.php, which works. In my case System::find() is used and in my opinion it contains a bug. I think exact searches for strings should also match if a directory component or the filename matches. So a test case would be: cvs -d:pserver:cvsread@cvs.php.net:/repository co pear/Net_Wifi cd pear/Net_Wifi/ pear run-tests -ur (if you don't supply -r the command will only look in the current directory) Is the problem clear now? Jorrit

« previous php.pear.dev (#48622) next »