Class CookieWrapperTest.
More...
◆ setUpBeforeClass()
static ILIAS\HTTP\Cookies\CookieJarWrapperTest::setUpBeforeClass |
( |
| ) |
|
|
static |
Definition at line 48 of file CookieJarWrapperTest.php.
50 parent::setUpBeforeClass();
51 self::$cookieFactory =
new CookieFactoryImpl();
52 self::$cookieJarFactory =
new CookieJarFactoryImpl();
◆ testWithDoesNotChangeTheCurrentObject()
ILIAS\HTTP\Cookies\CookieJarWrapperTest::testWithDoesNotChangeTheCurrentObject |
( |
| ) |
|
Definition at line 57 of file CookieJarWrapperTest.php.
59 $cookieName =
"YummyCookie";
60 $cookieValue =
"MilkAndChocolate";
61 $cookie = self::$cookieFactory->create($cookieName, $cookieValue);
62 $cookieJar = self::$cookieJarFactory->fromCookieStrings([]);
64 $newCookieJar = $cookieJar->with($cookie);
66 $this->assertFalse($cookieJar->has($cookieName));
67 $this->assertTrue($newCookieJar->has($cookieName));
69 $this->assertNotEquals($cookieJar, $newCookieJar);
◆ testWithoutDoesNotChangeTheCurrentObject()
ILIAS\HTTP\Cookies\CookieJarWrapperTest::testWithoutDoesNotChangeTheCurrentObject |
( |
| ) |
|
Definition at line 74 of file CookieJarWrapperTest.php.
76 $cookieName =
"YummyCookie";
77 $cookieValue =
"MilkAndChocolate";
80 $cookieJar = self::$cookieJarFactory->fromCookieStrings([ $cookieName .
'=' . $cookieValue .
';' ]);
83 $newCookieJar = $cookieJar->without($cookieName);
86 $this->assertTrue($cookieJar->has($cookieName));
89 $this->assertFalse($newCookieJar->has($cookieName));
92 $this->assertNotEquals($cookieJar, $newCookieJar);
◆ $cookieFactory
◆ $cookieJarFactory
The documentation for this class was generated from the following file: