Extends
lithium\test\Unit
Tests failing of parsing invalid locales.
Source
public function testDecomposeFail() {
$this->expectException();
try {
Locale::decompose('deee_DE');
$this->assert(false);
} catch (Exception $e) {
$this->assert(true);
}
$this->expectException();
try {
Locale::decompose('ZH-HANS-HK_REVISED_INVALID');
$this->assert(false);
} catch (Exception $e) {
$this->assert(true);
}
}