Changeset 2272
- Timestamp:
- 03/10/2008 10:17:15 AM (7 months ago)
- Files:
-
- 1 modified
-
trunk/modules/unit_test/libraries/Unit_Test.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/unit_test/libraries/Unit_Test.php
r2271 r2272 18 18 * Sets the test path(s), runs the tests inside and stores the results. 19 19 * 20 * @param string |arraytest path(s)20 * @param string(s) test path(s) 21 21 * @return void 22 22 */ 23 public function __construct( $paths = NULL)23 public function __construct() 24 24 { 25 25 // Normalize all given test paths 26 foreach ( (array) $pathsas $path)26 foreach (func_get_args() as $path) 27 27 { 28 28 $this->paths[] = str_replace('\\', '/', realpath($path)); … … 39 39 { 40 40 // Normalize path 41 $path = str_replace('\\', '/', realpath($path));41 $path = str_replace('\\', '/', $path); 42 42 43 43 // Skip files without "_Test" suffix
