10 require_once(
'./libs/composer/vendor/autoload.php');
37 parent::setUpBeforeClass();
49 $cookieValue =
"MilkAndChocolate";
50 $cookie = self::$cookieFactory->create(
$cookieName, $cookieValue);
51 $cookieJar = self::$cookieJarFactory->fromCookieStrings([]);
53 $newCookieJar = $cookieJar->with($cookie);
58 $this->assertNotEquals($cookieJar, $newCookieJar);
68 $cookieValue =
"MilkAndChocolate";
71 $cookieJar = self::$cookieJarFactory->fromCookieStrings([
$cookieName .
'=' . $cookieValue .
';' ]);
80 $this->assertFalse($newCookieJar->has(
$cookieName));
83 $this->assertNotEquals($cookieJar, $newCookieJar);
testWithoutDoesNotChangeTheCurrentObject()
Class CookieJarWrapperTest.
static setUpBeforeClass()
testWithDoesNotChangeTheCurrentObject()