Changeset 151
- Timestamp:
- 05/04/08 20:55:14 (8 months ago)
- Location:
- trunk/src/Stagehand/TestRunner
- Files:
-
- 5 modified
-
Collector/Common.php (modified) (2 diffs)
-
Collector/PHPSpec.php (modified) (1 diff)
-
Collector/PHPUnit.php (modified) (1 diff)
-
Collector/SimpleTest.php (modified) (1 diff)
-
DirectoryScanner.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/Stagehand/TestRunner/Collector/Common.php
r141 r151 263 263 264 264 if (!is_null($this->_excludePattern) 265 && preg_match( $this->_excludePattern, $newClasses[$i])265 && preg_match("/{$this->_excludePattern}/", $newClasses[$i]) 266 266 ) { 267 267 continue; … … 269 269 270 270 if (!is_null($this->_includePattern) 271 && !preg_match( $this->_includePattern, $newClasses[$i])271 && !preg_match("/{$this->_includePattern}/", $newClasses[$i]) 272 272 ) { 273 273 continue; -
trunk/src/Stagehand/TestRunner/Collector/PHPSpec.php
r120 r151 68 68 protected $_baseClass = 'PHPSpec_Context'; 69 69 protected $_suffix = 'Spec'; 70 protected $_includePattern = ' !(^[Dd]escribe|[Ss]pec$)!';70 protected $_includePattern = '(^[Dd]escribe|[Ss]pec$)'; 71 71 72 72 /**#@-*/ -
trunk/src/Stagehand/TestRunner/Collector/PHPUnit.php
r120 r151 67 67 */ 68 68 69 protected $_excludePattern = ' !^PHPUnit!';69 protected $_excludePattern = '^PHPUnit'; 70 70 protected $_baseClass = 'PHPUnit_Framework_TestCase'; 71 71 -
trunk/src/Stagehand/TestRunner/Collector/SimpleTest.php
r120 r151 70 70 */ 71 71 72 protected $_excludePattern = ' !^(UnitTestCase$|PHPUnit)!i';72 protected $_excludePattern = '^(UnitTestCase$|PHPUnit)'; 73 73 protected $_baseClass = 'UnitTestCase'; 74 74 -
trunk/src/Stagehand/TestRunner/DirectoryScanner.php
r150 r151 70 70 */ 71 71 72 private $_excludePatterns = array(' !^CVS$!',73 ' !^.svn!',74 ' !\.swp$!',75 ' !~$!',76 ' !\.bak$!',77 ' !^#.+#$!'72 private $_excludePatterns = array('^CVS$', 73 '^.svn', 74 '\.swp$', 75 '~$', 76 '\.bak$', 77 '^#.+#$' 78 78 ); 79 79 private $_callback; … … 119 119 120 120 foreach ($this->_excludePatterns as $excludePattern) { 121 if (preg_match( $excludePattern, $files[$i])) {121 if (preg_match("/$excludePattern/", $files[$i])) { 122 122 continue 2; 123 123 }
