|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-03-29 11:46 UTC] aharvey@php.net
-Status: Open
+Status: Bogus
[2011-03-29 11:46 UTC] aharvey@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 08 09:00:01 2025 UTC |
Description: ------------ If you have a string that contains the characters /* in PHPUnit, all the tests after it will be ignored because for some reason it thinks that it is a comment. A quick workaround is to add a block comment immediately after it. public function testOne(){ //make sure that the directory is currently empty foreach(glob('/tmp/ftp/*') as $fn) { unlink($fn); } /* */ //<- this line is a workaround } Test script: --------------- public function testOne(){ //make sure that the directory is currently empty foreach(glob('/tmp/ftp/*') as $fn) { unlink($fn); } } public function testTwo(){ //This test case will not show up in the test list }