Skip to content
Browse files

- Merge [1079].

  • Loading branch information...
1 parent 04f72ad commit 10153fa3b2c07a334a3c3bb112f55e583a09265f @sebastianbergmann committed Sep 2, 2007
Showing with 10 additions and 1 deletion.
  1. +10 −1 PHPUnit/Framework/TestCase.php
View
11 PHPUnit/Framework/TestCase.php
@@ -446,7 +446,16 @@ protected function setLocale()
}
$this->locale[$category] = setlocale($category, NULL);
- call_user_func_array( 'setlocale', $args );
+
+ $result = call_user_func_array( 'setlocale', $args );
+
+ if ($result === FALSE) {
+ throw new RuntimeException(
+ 'The locale functionality is not implemented on your platform, ' .
+ 'the specified locale does not exist or the category name is ' .
+ 'invalid.'
+ );
+ }
}
/**

0 comments on commit 10153fa

Please sign in to comment.
Something went wrong with that request. Please try again.