瀏覽代碼

merged branch pulzarraider/fix_profiler_test (PR #3455)

Commits
-------

e8281cf SqliteProfilerStorage fix

Discussion
----------

[HttpKernel] SqliteProfilerStorage fix

Bug fix: yes
Feature addition: no
Backwards compatibility break: no
Symfony2 tests pass: yes
Fixes the following tickets: -
Todo: -
Fabien Potencier 13 年之前
父節點
當前提交
f9f7640422
共有 1 個文件被更改,包括 6 次插入3 次删除
  1. 6 3
      tests/Symfony/Tests/Component/HttpKernel/Profiler/SqliteProfilerStorageTest.php

+ 6 - 3
tests/Symfony/Tests/Component/HttpKernel/Profiler/SqliteProfilerStorageTest.php

@@ -57,17 +57,20 @@ class SqliteProfilerStorageTest extends \PHPUnit_Framework_TestCase
         // The SQLite storage accepts special characters in URLs (Even though URLs are not
         // supposed to contain them)
         $profile = new Profile('simple_quote');
-        $profile->setUrl('127.0.0.1', 'http://foo.bar/\'');
+        $profile->setIp('127.0.0.1');
+        $profile->setUrl('http://foo.bar/\'');
         self::$storage->write($profile);
         $this->assertTrue(false !== self::$storage->read('simple_quote'), '->write() accepts single quotes in URL');
 
         $profile = new Profile('double_quote');
-        $profile->setUrl('127.0.0.1', 'http://foo.bar/"');
+        $profile->setIp('127.0.0.1');
+        $profile->setUrl('http://foo.bar/"');
         self::$storage->write($profile);
         $this->assertTrue(false !== self::$storage->read('double_quote'), '->write() accepts double quotes in URL');
 
         $profile = new Profile('backslash');
-        $profile->setUrl('127.0.0.1', 'http://foo.bar/\\');
+        $profile->setIp('127.0.0.1');
+        $profile->setUrl('http://foo.bar/\\');
         self::$storage->write($profile);
         $this->assertTrue(false !== self::$storage->read('backslash'), '->write() accpets backslash in URL');
     }