Explorar el Código

[BrowserKit] fixed test

Fabien Potencier hace 15 años
padre
commit
f8e2c3b945
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      tests/Symfony/Tests/Components/BrowserKit/CookieJarTest.php

+ 1 - 1
tests/Symfony/Tests/Components/BrowserKit/CookieJarTest.php

@@ -67,7 +67,7 @@ class CookieJarTest extends \PHPUnit_Framework_TestCase
     $cookieJar->updateFromResponse($response);
 
     $this->assertEquals('foo', $cookieJar->get('foo')->getValue(), '->updateFromResponse() updates cookies from a Response objects');
-    $this->assertNull($cookieJar->get('bar'), '->updateFromResponse() updates cookies from a Response objects');
+    $this->assertEquals('bar', $cookieJar->get('bar')->getValue(), '->updateFromResponse() keeps existing cookies');
   }
 
   /**