1
0
Fork 0

Cleaned up check+conversion that was no longer required.

pull/4838/head
Niels Keurentjes 2016-01-27 13:49:52 +01:00
parent 523362c7c5
commit 3e06c801f4
1 changed files with 1 additions and 3 deletions

View File

@ -159,9 +159,7 @@ class InstallerTest extends TestCase
->will($this->returnCallback($callback)); ->will($this->returnCallback($callback));
// Prepare for exceptions // Prepare for exceptions
if (is_int($expectResult) || ctype_digit($expectResult)) { if (!is_int($expectResult)) {
$expectResult = (int) $expectResult;
} else {
$normalizedOutput = rtrim(str_replace("\n", PHP_EOL, $expect)); $normalizedOutput = rtrim(str_replace("\n", PHP_EOL, $expect));
$this->setExpectedException($expectResult, $normalizedOutput); $this->setExpectedException($expectResult, $normalizedOutput);
} }