Browse Source

CS fixes in unit-test

Martin Schuhfuss 14 years ago
parent
commit
8340ac628d
1 changed files with 3 additions and 3 deletions
  1. 3 3
      tests/Symfony/Tests/Component/Yaml/ParserTest.php

+ 3 - 3
tests/Symfony/Tests/Component/Yaml/ParserTest.php

@@ -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.');
             }
         }