瀏覽代碼

fixed a typo causing tests to fail on PHP 5.4

Johannes M. Schmitt 12 年之前
父節點
當前提交
401821e491
共有 1 個文件被更改,包括 20 次插入31 次删除
  1. 20 31
      Tests/DependencyInjection/JMSSerializerExtensionTest.php

+ 20 - 31
Tests/DependencyInjection/JMSSerializerExtensionTest.php

@@ -18,24 +18,13 @@
 
 namespace JMS\SerializerBundle\Tests\DependencyInjection;
 
-use Symfony\Component\HttpKernel\KernelInterface;
-
-use Symfony\Component\DependencyInjection\Compiler\InlineServiceDefinitionsPass;
-
-use Symfony\Component\DependencyInjection\Compiler\RepeatedPass;
-
-use Symfony\Component\DependencyInjection\Compiler\AnalyzeServiceReferencesPass;
-
-use Symfony\Component\DependencyInjection\Compiler\RemoveUnusedDefinitionsPass;
-
-use JMS\SerializerBundle\Tests\Fixtures\SimpleObject;
 use Doctrine\Common\Annotations\AnnotationReader;
-use Symfony\Component\DependencyInjection\Compiler\ResolveDefinitionTemplatesPass;
 use JMS\SerializerBundle\JMSSerializerBundle;
-use Doctrine\Common\Annotations\Reader;
+use JMS\SerializerBundle\Tests\Fixtures\SimpleObject;
 use JMS\SerializerBundle\Tests\Fixtures\VersionedObject;
+use Symfony\Component\DependencyInjection\Compiler\ResolveDefinitionTemplatesPass;
 use Symfony\Component\DependencyInjection\ContainerBuilder;
-use JMS\SerializerBundle\DependencyInjection\JMSSerializerExtension;
+use Symfony\Component\HttpKernel\KernelInterface;
 
 class JMSSerializerExtensionTest extends \PHPUnit_Framework_TestCase
 {
@@ -101,29 +90,29 @@ class JMSSerializerExtensionTest extends \PHPUnit_Framework_TestCase
         $configs = array();
 
         if (version_compare(PHP_VERSION, '5.4', '>=')) {
-            $configs[] = array(JSON_UNESCAPE_UNICODE | JSON_PRETTY_PRINT, array(
-                'visitors' => array(
-                    'json' => array(
-                        'options' => array('JSON_UNESCAPED_UNICODE', 'JSON_PRETTY_PRINT')
-                    )
-                )
+            $configs[] = array(JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT, array(
+                'visitors' => array(
+                    'json' => array(
+                        'options' => array('JSON_UNESCAPED_UNICODE', 'JSON_PRETTY_PRINT')
+                    )
+                )
             ));
 
-            $configs[] = array(JSON_UNESCAPE_UNICODE, array(
-                'visitors' => array(
-                    'json' => array(
-                        'options' => 'JSON_UNESCAPED_UNICODE'
-                    )
-                )
+            $configs[] = array(JSON_UNESCAPED_UNICODE, array(
+                'visitors' => array(
+                    'json' => array(
+                        'options' => 'JSON_UNESCAPED_UNICODE'
+                    )
+                )
             ));
         }
 
         $configs[] = array(128, array(
-            'visitors' => array(
-                'json' => array(
-                    'options' => 128
-                )
-            )
+            'visitors' => array(
+                'json' => array(
+                    'options' => 128
+                )
+            )
         ));
 
         $configs[] = array(0, array());