Class CookieWrapperTest.
More...
◆ setUpBeforeClass()
static ILIAS\HTTP\Cookies\CookieJarWrapperTest::setUpBeforeClass |
( |
| ) |
|
|
static |
Definition at line 37 of file CookieJarWrapperTest.php.
39 parent::setUpBeforeClass();
40 self::$cookieFactory =
new CookieFactoryImpl();
41 self::$cookieJarFactory =
new CookieJarFactoryImpl();
◆ testWithDoesNotChangeTheCurrentObject()
ILIAS\HTTP\Cookies\CookieJarWrapperTest::testWithDoesNotChangeTheCurrentObject |
( |
| ) |
|
Definition at line 48 of file CookieJarWrapperTest.php.
50 $cookieName =
"YummyCookie";
51 $cookieValue =
"MilkAndChocolate";
52 $cookie = self::$cookieFactory->create($cookieName, $cookieValue);
53 $cookieJar = self::$cookieJarFactory->fromCookieStrings([]);
55 $newCookieJar = $cookieJar->with($cookie);
57 $this->assertFalse($cookieJar->has($cookieName));
58 $this->assertTrue($newCookieJar->has($cookieName));
60 $this->assertNotEquals($cookieJar, $newCookieJar);
◆ testWithoutDoesNotChangeTheCurrentObject()
ILIAS\HTTP\Cookies\CookieJarWrapperTest::testWithoutDoesNotChangeTheCurrentObject |
( |
| ) |
|
Definition at line 67 of file CookieJarWrapperTest.php.
69 $cookieName =
"YummyCookie";
70 $cookieValue =
"MilkAndChocolate";
73 $cookieJar = self::$cookieJarFactory->fromCookieStrings([ $cookieName .
'=' . $cookieValue .
';' ]);
76 $newCookieJar = $cookieJar->without($cookieName);
79 $this->assertTrue($cookieJar->has($cookieName));
82 $this->assertFalse($newCookieJar->has($cookieName));
85 $this->assertNotEquals($cookieJar, $newCookieJar);
◆ $cookieFactory
CookieFactory ILIAS\HTTP\Cookies\CookieJarWrapperTest::$cookieFactory |
|
staticprivate |
◆ $cookieJarFactory
The documentation for this class was generated from the following file: