소스 검색

Cleaned up check+conversion that was no longer required.

Niels Keurentjes 9 년 전
부모
커밋
3e06c801f4
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      tests/Composer/Test/InstallerTest.php

+ 1 - 3
tests/Composer/Test/InstallerTest.php

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