]> git.mxchange.org Git - friendica.git/blobdiff - tests/Util/StaticCookie.php
XMPP URI and markdown are no friends (yet)
[friendica.git] / tests / Util / StaticCookie.php
index 9aeec0b3348f6ff4c1759b7494fa848fc90b23a4..6cfbdc3ab7df3d8757cbc9558b47072ffec19dd1 100644 (file)
@@ -33,6 +33,20 @@ class StaticCookie extends Cookie
        /** @var int The last expire time set */
        public static $_EXPIRE;
 
+       /**
+        * Send a cookie - protected, internal function for test-mocking possibility
+        * @see Cookie::setCookie()
+        *
+        * @link  https://php.net/manual/en/function.setcookie.php
+        *
+        * @param string $name
+        * @param string $value  [optional]
+        * @param int    $expire [optional]
+        * @param bool   $secure [optional]
+        *
+        * @noinspection PhpMissingParentCallCommonInspection
+        *
+        */
        protected function setCookie(string $name, string $value = null, int $expire = null, bool $secure = null)
        {
                self::$_COOKIE[$name] = $value;