|
@@ -113,7 +113,7 @@ EOF
|
|
|
|
|
|
public function testNonUtf8Exception()
|
|
|
{
|
|
|
- if(!function_exists('mb_detect_encoding')) {
|
|
|
+ if (!function_exists('mb_detect_encoding')) {
|
|
|
$this->markTestSkipped('Exceptions for non-utf8 charsets require the mb_detect_encoding() function.');
|
|
|
|
|
|
return;
|
|
@@ -125,12 +125,12 @@ EOF
|
|
|
iconv("UTF-8", "CP1252", "cp1252: '©ÉÇáñ'")
|
|
|
);
|
|
|
|
|
|
- foreach($yamls as $yaml) {
|
|
|
+ foreach ($yamls as $yaml) {
|
|
|
try {
|
|
|
$this->parser->parse($yaml);
|
|
|
|
|
|
$this->fail('charsets other than UTF-8 are rejected.');
|
|
|
- } catch(\Exception $e) {
|
|
|
+ } catch (\Exception $e) {
|
|
|
$this->assertInstanceOf('Symfony\Component\Yaml\ParserException', $e, 'charsets other than UTF-8 are rejected.');
|
|
|
}
|
|
|
}
|