Permalink
Browse files

- Merge [3912].

  • Loading branch information...
1 parent 721a8c8 commit 644313c540449498b58c3ad609ab6a6f3401b148 @sebastianbergmann committed Oct 29, 2008
Showing with 3 additions and 3 deletions.
  1. +2 −2 PHPUnit/Framework/TestSuite.php
  2. +1 −1 PHPUnit/Runner/BaseTestRunner.php
@@ -426,15 +426,15 @@ public function addTestFile($filename, $syntaxCheck = TRUE, $phptOptions = array
* @throws InvalidArgumentException
* @since Method available since Release 2.3.0
*/
- public function addTestFiles($filenames)
+ public function addTestFiles($filenames, $syntaxCheck = TRUE)
{
if (!(is_array($filenames) ||
(is_object($filenames) && $filenames instanceof Iterator))) {
throw new InvalidArgumentException;
}
foreach ($filenames as $filename) {
- $this->addTestFile((string)$filename);
+ $this->addTestFile((string)$filename, $syntaxCheck);
}
}
@@ -190,7 +190,7 @@ public function getTest($suiteClassName, $suiteClassFile = '', $syntaxCheck = TR
);
$suite = new PHPUnit_Framework_TestSuite($suiteClassName);
- $suite->addTestFiles($testCollector->collectTests());
+ $suite->addTestFiles($testCollector->collectTests(), $syntaxCheck);
return $suite;
}

0 comments on commit 644313c

Please sign in to comment.