Skip to content

Commit

Permalink
- Merge [4678].
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Feb 25, 2009
1 parent a8a26e9 commit 5ca32d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion PHPUnit/Framework/TestResult.php
Expand Up @@ -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');
}
}

Expand Down
6 changes: 3 additions & 3 deletions PHPUnit/Framework/TestSuite.php
Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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');
}
}

Expand Down

0 comments on commit 5ca32d4

Please sign in to comment.