Permalink
Browse files

- Merge [4678].

  • Loading branch information...
1 parent a8a26e9 commit 5ca32d4163f6b5950f46a18c4c230d975209a33e @sebastianbergmann committed Feb 25, 2009
Showing with 4 additions and 4 deletions.
  1. +1 −1 PHPUnit/Framework/TestResult.php
  2. +3 −3 PHPUnit/Framework/TestSuite.php
View
2 PHPUnit/Framework/TestResult.php
@@ -487,7 +487,7 @@ public function collectRawCodeCoverageInformation($flag)
$this->collectCodeCoverageInformation = $flag;
}
} else {
- throw new PHPUnit_Util_InvalidArgumentHelper::factory(1, 'boolean');
+ throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'boolean');
}
}
View
6 PHPUnit/Framework/TestSuite.php
@@ -308,7 +308,7 @@ public function addTestSuite($testClass)
}
if (!is_object($testClass)) {
- throw new PHPUnit_Util_InvalidArgumentHelper::factory(1, 'class name or object');
+ throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'class name or object');
}
if ($testClass instanceof PHPUnit_Framework_TestSuite) {
@@ -439,7 +439,7 @@ public function addTestFiles($filenames, $syntaxCheck = TRUE)
{
if (!(is_array($filenames) ||
(is_object($filenames) && $filenames instanceof Iterator))) {
- throw new PHPUnit_Util_InvalidArgumentHelper::factory(1, 'array or iterator');
+ throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'array or iterator');
}
foreach ($filenames as $filename) {
@@ -863,7 +863,7 @@ public function setRunTestsInSeparateProcesses($runTestsInSeparateProcesses)
if (is_null($this->runTestsInSeparateProcesses) && is_bool($runTestsInSeparateProcesses)) {
$this->runTestsInSeparateProcesses = $runTestsInSeparateProcesses;
} else {
- throw new PHPUnit_Util_InvalidArgumentHelper::factory(1, 'boolean');
+ throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'boolean');
}
}

0 comments on commit 5ca32d4

Please sign in to comment.