Skip to content

Commit

Permalink
Simplify after #3956
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Mar 21, 2020
1 parent 76dd3c3 commit 1940bf3
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions src/Framework/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -2396,22 +2396,9 @@ private function runInSeparateProcess(): bool
!$this->inIsolation && !$this instanceof PhptTestCase;
}

/**
* @param string|string[] $originalClassName
*/
private function recordDoubledType($originalClassName): void
private function recordDoubledType(string $originalClassName): void
{
if (\is_string($originalClassName)) {
$this->doubledTypes[] = $originalClassName;
}

if (\is_array($originalClassName)) {
foreach ($originalClassName as $_originalClassName) {
if (\is_string($_originalClassName)) {
$this->doubledTypes[] = $_originalClassName;
}
}
}
$this->doubledTypes[] = $originalClassName;
}

private function isCallableTestMethod(string $dependency): bool
Expand Down

0 comments on commit 1940bf3

Please sign in to comment.